3 ms·
Seriously - do you really need all this stuff: React React Router Declarative routing for React Babel for ES6 and ES7 magic Webpack for bundlin
by chvid 9y ago
Seriously - do you really need all this stuff:
React
React Router Declarative routing for React
Babel for ES6 and ES7 magic
Webpack for bundling
Webpack Dev Middleware
Clean Webpack Plugin
Redux Predictable state container for JavaScript apps
Redux Dev Tools DevTools for Redux with hot reloading, action replay, and customizable UI. Watch Dan Abramov's talk
Redux Thunk Thunk middleware for Redux - used in async actions
React Router Redux Ruthlessly simple bindings to keep react-router and redux in sync
fetch A window.fetch JavaScript polyfill
tcomb form Forms library for react
style-loader, sass-loader and less-loader to allow import of stylesheets in plain css, sass and less,
font-awesome-webpack to customize FontAwesome
bootstrap-loader to customize Bootstrap
ESLint, Airbnb Javascript/React Styleguide, Airbnb CSS / Sass Styleguide to maintain a consistent code style and eslint-plugin-import to make sure all imports are correct
mocha to allow writing unit tests for the project
Enzyme JavaScript Testing utilities for React
redux-mock-store a mock store for your testing your redux async action creators and middleware
expect Write better assertions
Nock HTTP mocking and expectations library
istanbul to generate coverage when running mocha
?
- hasenj 9y agoYou really really don't. The fact that this kind of stuff gets so many votes is somewhat alarming, to say the least.
- GrumpyNl 9y agoWelcome to the wonderfull world of react.
- halayli 9y agoFor the most part, yes.
- andy_ppp 9y agoIf you want to use React and build a SPA I'm afraid that's pretty minimal - by the end of writing your JS app you'll probably end up with another <EDITED: arbitrary large number> dependancies. Actually looking at the package.json here: https://github.com/Seedstars/django-react-redux-base/blob/master/package.json https://github.com/Seedstars/django-react-redux-base/blob/ma... Things are actually much worse than even the above - taking into account with all the dependancies resolved it's 930 packages :-/
- zeta_ 9y agoMost of these are dev libraries
- chvid 9y agoI am afraid they are not: "dependencies": { "autoprefixer": "7.1.2", "babel-core": "6.26.0", "babel-loader": "7.1.2", "babel-plugin-react-display-name": "2.0.0", "babel-plugin-react-transform": "2.0.2", "babel-plugin-transform-decorators-legacy": "1.3.4", "babel-plugin-undeclared-variables-check": "6.22.0", "babel-polyfill": "6.26.0", "babel-preset-es2015": "6.24.1", "babel-preset-es2015-loose": "8.0.0", "babel-preset-react": "6.24.1", "babel-preset-stage-1": "6.24.1", "babel-runtime": "6.26.0", "body-parser": "1.17.2", "bootstrap-loader": "2.2.0", "bootstrap-sass": "3.3.7", "classnames": "2.2.5", "clean-webpack-plugin": "0.1.16", "css-loader": "0.28.5", "errorhandler": "1.5.0", "es6-promise": "4.1.1", "exports-loader": "0.6.4", "extract-text-webpack-plugin": "3.0.0", "file-loader": "0.11.2", "font-awesome": "4.7.0", "font-awesome-webpack": "0.0.5-beta.2", "history": "4.7.2", "html-webpack-plugin": "2.30.1", "imports-loader": "0.7.1", "isomorphic-fetch": "2.2.1", "jquery": "3.2.1", "less": "2.7.2", "less-loader": "4.0.5", "node-sass": "4.5.3", "postcss-import": "10.0.0", "postcss-loader": "2.0.6", "prop-types": "15.5.10", "react": "15.6.1", "react-dom": "15.6.1", "react-mixin": "3.1.0", "react-redux": "5.0.6", "react-router": "4.2.0", "react-router-dom": "4.2.2", "react-router-redux": "5.0.0-alpha.6", "redux": "3.7.2", "redux-thunk": "2.2.0", "resolve-url-loader": "2.1.0", "sass-loader": "6.0.6", "style-loader": "0.18.2", "tcomb-form": "0.9.17", "url-loader": "0.5.9", "webpack": "3.5.5", "webpack-merge": "4.1.0", "whatwg-fetch": "2.0.3", "yargs": "8.0.2" }, (from package.json).
- alexanderdmitri 9y agoReactDev: ... [fidgets] ... it's, uh ... [clears his throat] ... well, yeah... [fidgets some more] ...
- Double_a_92 9y agoCreating a static website is some pretty hardcore stuff. Of course we need all of those, how else could we do it? /s