Skip to content
Implement SSR for React with ☄️, TypeScript, ReactRouter, StyledComponents on Razzle
TypeScript JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
typings
.babelrc
.commitlintrc.json
.gitignore
.huskyrc
.lintstagedrc
.prettierrc
README.md
package.json
razzle.config.js
tsconfig.json
yarn.lock

README.md

Effector SSR Template

code style: prettier Commitizen friendly Conventional Commits

How to use

  1. Press Use this template button.

  2. Clone it, install and run:

yarn install
yarn start

Structure

https://sova.dev/application-structure

  • src/server.tsx — Express server, that renders React to stream
  • src/index.tsx — Node.js entry point, that have hot module replacement and imports server
  • src/client.tsx — Browser side entry point, that hydrates stores and react app
  • src/application.tsx — Application component, that have global styles and effector provider
  • src/pages/index.tsx — Pages component
  • src/pages/routes.ts — Static routes config
  • src/pages/:page-name/index.tsx — View for single specific page
  • src/pages/:page-name/model.ts — Business-logic for specific page, that contains single level logic layer
  • src/lib — Internal libraries
  • src/lib/effector — Methods of the effector binded to application domain
You can’t perform that action at this time.