React Hook, Hooks, React.
function as a parameter //Example1:useEffect() for fetching data import React, { useState, useEffect } from ‘react’ import axios from ‘axios’ function DataFetching() { const [posts, setPosts] = useState([]) useEffect(() => { axios.get(‘https://jsonplaceholder.typicode.com/posts') .then(res => {