Over the years, there have been development overtimes in the React world.
I am very curious if my knowledge is kinda up-to-date. Currently, I have MERN Stack app.
Using
- Redux
- class components
I have heard a lot about Context API and it can be replaced Redux. However, many have told me that it is just for a small - mid-size application that can replace redux with Context API. I know that Context API is supported by React.
And, wondering if it has a plan to take over Redux itself? I know that it is not more likely at this time. But, just to be informed.
Moreover, I am working on switching my class components to functional components for the coherency and cleaning up the codes that I have.
Is it a wise decision to spend like 3-4 weeks just to convert perfectly working class components to functional components?
My app is not that big. It is a small-scaled app at the moment. However, I want to organize things right now than when it gets too big to change anything in the end.
I know FB will not cut off the āclassā component, however, functional components with hooks seems way more appealing to me and to understand the code.
Another thing is with the Context API. Even if it does not match up with Redux at the moment, what if it gets better every time and eventually, it can replace Redux at the end?
Just want to hear your thoughts on this topic!