Skip to content

svnm/react-webpack-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An extremely minimal example of using react, webpack and styled components in production with universal rendering and in development with live reloading...

Styled components server rendering setup inspired by Dennis Brotzky guide-to-server-side-rendering-react-with-styled-components

Dependencies

  • react 16.0.0
  • babel 7.3.3
  • webpack 4.29.4
  • styled components 4.1.3

Run Dev

  • webpack dev server with hot reloading, no server rendering
yarn
yarn dev
open http://127.0.0.1:3000

Run Server

  • Universal server side rendering!
yarn
yarn build
yarn prod
open http://127.0.0.1:3000

Testing

  • Using Enzyme, Tape and Jsdom
yarn
yarn test

License

MIT

About

A minimal example using react, webpack and styled components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published