Skip to content

What I've learned

Fred B edited this page Nov 21, 2020 · 9 revisions
  • Not using libraries like redux and sagas for medium to large scale project is the same as shooting one's self in the foot
  • By trying to implement these myself, i've learned that they are not that complicated, but they have the advantage of being thorougly tested, so once less immense thing not to worry about. Being able to rely on the open-source community for this is one of the many foundational stones for a successful project.
  • Use NextJs instead of Create React App to bootstrap the project
  • Use Redux Toolkit to avoid all the plain Redux boilerplate code. This has the advantage to still include the flux architecture, the stability of redux, while being able to be more flexible with regards to code maintenance and scalabilility.
  • Well defined and stable specs are another foundational stone for a succesfull project outcome.
  • Implement the Private Route pattern using the react-router-dom
  • Feature-centered directory structure 👍, like it is right now, but for greater coder’s convenience, I would include the redux-related files into the corresponding feature directory. Right now, they do sit in their own feature directory, but are all sitting inside a redux directory, at root level.
  • Test-Driven Development is something I keep on putting to the side, although I periodically dive into the subject, for one day I will adopt the technique, I swear ;)
Clone this wiki locally