mirror of
https://github.com/gregberge/loadable-components.git
synced 2026-01-25 15:24:15 +00:00
The SSR example doesn't work without building the library, add that as a step for running the example.
41 lines
538 B
Markdown
41 lines
538 B
Markdown
# Get the SSR example running
|
|
|
|
Steps:
|
|
|
|
1. Download repository
|
|
|
|
```bash
|
|
git clone https://github.com/gregberge/loadable-components.git
|
|
```
|
|
|
|
2. Install [https://yarnpkg.com/lang/en/docs/install](yarn) if haven't already
|
|
3. Install libary dependencies and build library
|
|
```bash
|
|
yarn
|
|
yarn build
|
|
```
|
|
|
|
4. Move into example directory
|
|
|
|
```bash
|
|
cd ./loadable-components/examples/server-side-rendering
|
|
```
|
|
5. Install project dependencies
|
|
|
|
```bash
|
|
yarn
|
|
```
|
|
|
|
5. Run locally or build and serve
|
|
|
|
```bash
|
|
yarn dev
|
|
|
|
# Or
|
|
|
|
yarn build
|
|
yarn start
|
|
```
|
|
|
|
🍻
|