DEV Community

loading...

Discussion on: What's the hardest thing about learning React JS?

Collapse
drewclem profile image
Drew Clements
  1. State management without a library was pretty tough for me. It took a while for me to grasp the concept that the state only existed in the instance it was used, so refreshing or navigating to a new page lost or reset the state. I spent a bit trying to use it as an on the fly database before realizing its limitations.

  2. There was never really a solve as much as there was gaining an understanding of it. Learning more about props helped too. With props you can take the state of one component, pass it to another- and now that state persists into the next area you need it to continue working.

This is all a very simplistic breakdown of everything so take the "explanations" with a grain of salt.