paint-brush
React Hooks 101: useState and useEffectby@Vieira
2,719 reads
2,719 reads

React Hooks 101: useState and useEffect

by Amanda2mFebruary 2nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

React Hooks is a proposal to make development with React more flexible, bridging the gap between stateful and stateless components. With Hooks you can add states in a functional stateless component. The useState method takes a parameter, which is the State's initial value, and returns two properties in an array, the State itself and the method used to update it. Hooks are some methods that give more power to your stateless. components, like own and independent states, some lifecicles, subscription, logic sharing, reducers and etc.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - React Hooks 101: useState and useEffect
Amanda HackerNoon profile picture
Amanda

Amanda

@Vieira

Full-Stack Developer

About @Vieira
LEARN MORE ABOUT @VIEIRA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Amanda HackerNoon profile picture
Amanda@Vieira
Full-Stack Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite