An exploration of best practices for updating local state based on changing props.

Please note that this article assumes a basic level of familiarity with React.js, the React Component Lifecycle and Redux.

If you’ve ever wondered how to effectively update the state of a Component in your React.js application based on changing props, then this article is for you. I hadn’t spent too much time thinking about this myself until recently, when I encountered a puzzling bug while working on my team’s capstone project for the Grace Hopper Software Engineering Bootcamp. Until that point, I suppose I just thought that…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store