项目作者: sanoop-jose

项目描述 :
react project template (Node.js, React.js, Babel, SASS, Webpack, Webpack-Dev-Server)
高级语言: JavaScript
项目地址: git://github.com/sanoop-jose/react-project-template.git
创建时间: 2017-04-14T11:51:17Z
项目社区:https://github.com/sanoop-jose/react-project-template

开源协议:MIT License

下载


react-project-template

Simple react project template that includes following features

  • Customized webpack configuration
  • Customized local server support
  • Sass support
  • Well defined react project folder structure
  • Hot reloading
  • Page routing Routing

How to use

  1. Clone the project from https://github.com/sanoop-jose/react-project-template.git
  2. cd react-project-template
  3. npm install
  4. npm start
  5. goto http://localhost:3000/

Project folder structure

  1. src
  2. ├── app
  3. ├── actions
  4. ├── assets
  5. ├── images
  6. ├── components
  7. ├── containers
  8. ├── reducers
  9. ├── index.js
  10. ├── globalData
  11. ├── styles
  12. ├── app.scss
  13. ├── _variables.scss
  14. ├── _colors.scss
  15. ├── _font.scss
  16. ├── index.js
  17. ├── App.js
  18. ├── index.html
  19. └── index.js

Routing

  1. import { BrowserRouter as Router, Route } from 'react-router-dom'
  2. <Router>
  3. <Route path="/:filter?" component={App} ></Route>
  4. </Router>

SASS support

  1. @import 'variables';
  2. body {
  3. background: $primaryBgColor;
  4. color: $primaryTextColor;
  5. }