This post is about introduction to useContext hook & the reason to use it.Let’s see what makes useContext so special.

SITE FOR WEB DEVELOPERS.
This post is about introduction to useContext hook & the reason to use it.Let’s see what makes useContext so special.
1.The Effect Hook allows us to perform side effects (an action) in the function components.
2.Function component doesn’t have life cycle methods which are available in class components ,In other words Effects Hooks are equivalent to componentDidMount(),
componentDidUpdate() , and componentWillUnmount() lifecycle methods.
useState() is a React hook. Hooks make it possible to use state and mutability inside function components. It basically lets you turn your non-stateful.
1.Hooks are the new feature introduced in the React V16.8.0 version.
2.Hooks are functions that let you “hook into” React state and lifecycle features from function components.
3.Hooks don’t work inside classes — they let you use React without classes.
Hey guys, Below are some important interview questions with answers, hope you all like them.For any improvement/suggestions use the comment … Read more
In this post, we will learn how to set up a successful environment for React development, For running any react application.We use CRA tool by facebook to create react template application.