React Hooks were introduced in React 16.8 in February of 2019. There were several problems that hooks set out to resolve. For beginners, deciding whether a component should be a class or functional component can be confusing. The rules of classes can also lead to some difficulties for those learning React, since Javascript has uncommon rules for when to use this and bind. The React team developed hooks as a way to allow for state management and side effects such as the lifecycle methods componentDidMount() and componentDidUpdate() in functional components. …

Dave Wisecarver

Software dev student and free-time game dev. Currently enrolled in Flatiron Software Engineering Program.

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