return to react
Leslie
Posted on January 2, 2021
In 2020 most of my time was spent dealing with legacy systems revolving around jQuery. By the end of the year, I had my personal roadmap quite laid out for 2021, and migration to react is on top of the list.
I started listing down the things I have to do:
- list the new feature requirements
- check my current reactJS setup
- review reactJS changes and the packages I use
Current setup: reactJS + redux. To note, I'm using redux-form and redux-saga. I use this for my big dashboard projects.
New setup: reactJS, no redux. My new project does not need redux. I'm still in the process of redesigning, but this will probably be it. I will surely miss redux-saga though.
Anyway, for now here are things I learned / checked out:
- new form: formik vs react-final-form. I learned both and their APIs do look similar.
- validations: yup. Clean validation schemas. I haven't looked for something else though. So no comparisons.
- xhr: ky. Based on the native fetch.
- react-query. Interesting, especially for data-heavy projects.
- new setup for webpack5 and babel
- enzyme vs react-testing-library. Decided not to change my current setup using enzyme. At least not for now, because I just have too many other things to decide on.
- Learned redux-saga can be used without redux
Lastly, Robin Wieruch's tutorials. I first started truly learning reactJS through his ebooks. That was in 2017. Every time I want to brush up on my FE knowledge, I always visit his website.
Posted on January 2, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.