Hooks are newly added in React. It helps to declare state and other features in functional components without writing class. Hooks makes complex calculation, Rendering, lifecycle easily.

Structure: const[value, setValue] = useState(initialValue)
Structure: useEffect(callback,[ dependencies])

//React Structure Example:const Book = () => {
return (
<h1>Hello World!</h1> …

function functionName() {
// Code to be executed
// Defining function
function sayHello() {
alert("Hello, Programmer You are welcome to this website!"); …

Programmer Nazmul

Hi, I'm Nazmul Huda. A full stack Web Application Developer. I love new challenges and working with new technologies.

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