Getting started with React Hooks

Gilad lev-ari
Dec 24, 2018 · 4 min read

What are Hooks?

What kind of Hooks can I use?

Let’s start with, a simple Todo App demo


You can see the full component here.


An example using useReducer

const reducer = (state, action) => {
if(action === 'what ever you like') {
return {...state, someProp: 'the action was whatever you like, and I like this'}

Now I know what you are thinking 💡

In conclusion

Gilad lev-ari

Written by

Full stack web engeneer with over a decate of experience and true passion for front end development and JavaScript 💪

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade