by smdz · 9y ago · 0 comments
1. Redux
2. React Router
3. Smart components
4. Dumb components
5. Services (This is combination of Redux, redux-thunk and axios(or whatever))
6. Webpack (CSS loader, SCSS, fonts, html, etc...)
7. And hopefully, everything with TypeScript if they can get over Flow.
Having worked on quite a few React projects, I have a boilerplate that mashes up the above combination and makes it work. With new project, I upgrade the dependencies.
But each time I start a new project in 3-4 months, something would have changed. Either its TS type defs or something in core React.
And as I discovered recently few days back - Webpack2, Router4 broke my boilerplate setup. Well, they actually improved react-router, and that made me remove some workarounds.
Every time I start, I end up spending at least half-to-one day setting up the same "Hello world" page and making sure the wiring works okay before I proceed to add functionality. That is just a waste of time. React core is cool, but I hope they had one highly-opinionated version of React that works out of the box.
For starters - yes, definitely. They should start with it