@DonUggioni
Posted
Hey there,
Good job on this one =)
Redux can be a pain and I believe it might be better for really big projects with lots of state management. Did you try using the createContext hook?
@Daniil034
Posted
@DonUggioni Hey. Thanks for your feedback! You are the second person who tells me about the Context API) As far as I know, it works for passing props throughout an application, but Redux also provides you Devtools which are quite handy, not to mention other staff that can be used along with this library. Actually, after writing the Redux reducers and combining store for several times with redux toolkit, it becomes easier and doesn't make too many obstacles for you))
@DonUggioni
Posted
@Daniil034 That is true yeah. I am learning Redux now, there's a lot of boiler plate code but once it's set up, it seems more complete. And makes it easier to deal with a lot of state changes and passing data around.
@Daniil034
Posted
@DonUggioni A little advice, after fundamentals just focus on redux toolkit and after completing it and starting your first project, open Redux toolkit / react-redux documentation and it will be muuuch easier looking in it)) To be honest, I even implemented controllable input in this project not via react, but redux, since this state has to be shared between two different components, and in my implementation lifting state to an upper-level component wouldn't have helped because I used conditional rendering and on mobiles there is just either input or preview component) I am looking forward to seeing your first Redux project)