Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dxx/react-ssr
:ledger: A react ssr demo
https://github.com/dxx/react-ssr
Last synced: about 2 months ago
JSON representation
:ledger: A react ssr demo
- Host: GitHub
- URL: https://github.com/dxx/react-ssr
- Owner: dxx
- Created: 2018-10-09T10:27:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T22:48:34.000Z (about 2 years ago)
- Last Synced: 2024-05-16T01:03:14.755Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 942 KB
- Stars: 106
- Watchers: 1
- Forks: 30
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## React SSR
This is a react ssr demo written with typescript. It base on react16.x and webpack4.x
Fetures:
1. Support HMR in development mode.
2. Code Splitting base on route.
3. Head management for SEO.
4. Fetch Data ahead of time.## Available Scripts
### `npm install`
First, run the `npm install` to install dependence.
### `npm run dev`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.### `npm run build`
Builds the app for production.
### `npm run start`
Starts the server for production.