Explaining useEffect Hook in React

Index

What is useEffect Hook?

import React, { useState } from "react";const Practise = () => {const [count, setCount] = useState(0);return (<><div><p>You clicked {count} times</p><button onClick={() => setCount(count + 1)}>Click me</button></div>);</>);};export default Practise;

--

--

--

I am a front-end developer from India with over one year of experience in freelancing with skills like Git, HTML5, CSS3, Bootstrap 4&5, and React.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How We Built It: DIRECT

In Depth Javascript: Understanding Proxy Object Get Function Handler and Target Object with…

Arrow function v.s function in Javascript

Log4j Logging Framework

React JS

JAVASCRIPT string value check (if there is no value, false returns)

How React Native App Is The Future Of Mobile App Development

Working with Maps in React Native

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
Ateev Duggal

Ateev Duggal

I am a front-end developer from India with over one year of experience in freelancing with skills like Git, HTML5, CSS3, Bootstrap 4&5, and React.

More from Medium

What are React Functional Components?

My first foray into custom hooks in React

State: React Hooks Or React Classes

Why Hooks are more effective in React? (useState)