Do You Really Know UseEffect?
React 16.8 comes bearing with gifts such as Hooks and React community couldn't be happier and why won't they be as Hooks gives the developer to create functional components with the power of Class components.
Some of the famous hooks are
State Hook ...
blog.theashishmaurya.me4 min read
SavAnna
Hello Ashish, I have a question. Do I need to use UseEffect when I have something like this: const [name, setName] = useState(props. data. name) Here, from proprs I get the fetched data from a database... For example, when I console.log(name), it shows the data two times. Thank you in advance. Anna