A starter template of a Web application based on React/TypeScript/SCSS/Rollup and yarn workspace. It supports Server Side Rendering (SSR) and SEO optimized.
- Fork and clone this repository or use it as a template to create a new project on GitHub.
- Install dependencies:
npm install
or
yarn install
- Create .env files in packages/web and packages/server folder. The content can be copied from .env.sample file.
- Start the development server:
npm run dev
or
yarn dev
For state management the template uses react-reducer-ssr(https://github.com/alfed7/react-reducer-ssr) which has a similar syntax with Redux but built on top of built-in React context and useReducer. It supports async actions. It uses immer to simplify writing of reducers.
We welcome contributions from the community! If you'd like to contribute to react-ssr-ts-scss-rollup
, please follow our contribution guidelines.
This project is licensed under the MIT License. For more information, see the LICENSE file.
For support and bug reports, please open an issue on GitHub.