|
1 | 1 | # React With Lazy loading
|
| 2 | +How to add lazy loading in react apps using react loadable. |
2 | 3 |
|
3 | 4 | 
|
4 | 5 |
|
5 |
| -``` |
6 |
| -npm i // to install dependencies |
| 6 | +## Getting Started |
| 7 | + |
| 8 | +For help getting started with React, view online |
| 9 | +[documentation](https://reactjs.org/). |
| 10 | + |
| 11 | +#### 1. [Setup React](https://reactjs.org/docs/try-react.html) |
| 12 | + |
| 13 | +#### 2. Clone the repo |
| 14 | + |
| 15 | +```sh |
| 16 | +$ https://github.com/asifvora/lazy-loading-react-js.git |
| 17 | +$ cd lazy-loading-react-js/ |
7 | 18 | ```
|
8 | 19 |
|
| 20 | +#### 3. Install dependency |
| 21 | + |
| 22 | +```sh |
| 23 | +$ npm install |
9 | 24 | ```
|
10 |
| -npm start // to start dev server |
| 25 | + |
| 26 | +#### 4. Run the app |
| 27 | + |
| 28 | +```sh |
| 29 | +$ npm start |
11 | 30 | ```
|
| 31 | + |
| 32 | +## View Demo |
| 33 | + |
| 34 | +[Demo](https://serene-saha-d894e0.netlify.com/) |
| 35 | + |
| 36 | +## Questions?🤔 |
| 37 | + |
| 38 | + |
| 39 | +Hit me on [](https://twitter.com/007_dark_shadow) |
| 40 | +[](https://medium.com/@asifvora) |
| 41 | +[](https://www.linkedin.com/in/asif-vora/) |
| 42 | +[](https://www.instagram.com/007_dark_shadow/) |
| 43 | + |
| 44 | + |
| 45 | +## License |
| 46 | + |
| 47 | +Copyright (c) Asif Vora |
| 48 | + |
| 49 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 50 | +of this software and associated documentation files (the "Software"), to deal |
| 51 | +in the Software without restriction, including without limitation the rights |
| 52 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 53 | +copies of the Software, and to permit persons to whom the Software is |
| 54 | +furnished to do so, subject to the following conditions: |
| 55 | + |
| 56 | +The above copyright notice and this permission notice shall be included in all |
| 57 | +copies or substantial portions of the Software. |
| 58 | + |
| 59 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 60 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 61 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 62 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 63 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 64 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 65 | +SOFTWARE. |
0 commit comments