Hooks in React Native

Photo by Steve Johnson on Unsplash

A while ago, React introduced React Hooks. Since version 0.59, you can also use them in React Native.

What are React Hooks?

React Hooks are a way to use stateful functions inside a functional component. Functional components are components written as a function, so they take some input (props) and return a React Element. Before React Hooks, you would need to write a JSX (JavaScript and…

--

--

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