Skip to content
/ minus Public

React / Redux isomorphic starter, focused on minimalism and beauty

Notifications You must be signed in to change notification settings

SIGSEV/minus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minus

Minimalist starter for isomorphic apps

  • No. Fucking. Bullshit. Just the code.
  • 100% ES6/ES7
  • 100% isomorphic — page is rendered server side for initial load
  • Use React, Redux, react-router
  • Fully linted, with large amount of eslint rules
  • Happy developer experience:
    • Client hot reloading for components, styles, actions and reducers
    • Out-of-the-box support of redux-devtools-extension
    • Ready to use build system, with assets renaming and optimizations

Usage

Launch the dev environment:

yarn start

Launch the build:

yarn build

Launch the app in prod mode:

yarn prod

If you want to see more commands, just read the fucking package.json.

SSR data loading

To do async operations before SSR, you can define a load prop on your route object, which receive the store and returns a Promise.

// src/routes.js

export default [
  ...
  {
    path: '/foo-route',
    component: FooComponent,
    load: async ({ dispatch, getState }) => {
      // do whatever you want.
    }
  }
]

About

React / Redux isomorphic starter, focused on minimalism and beauty

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published