Hi There, i'm Said Mounaim A passionate Intermediate Full Stack Developer having an experience of building responsive Web applications with JavaScript / React.js / Next.js / Node.js and some other cool libraries and frameworks.
Nothing here yet.
Thanks ! and another example if we want to know how many times our Application renders with useState, we can't we get infinite loop cuz useState itself causes a re rendring, for that we can use useRef Hook import { useState , useEffect , useRef } from "react" ; function App ( ) { const [inputValue, setInputValue] = useState( "" ); const count = useRef( 0 ); useEffect(() = > { count.current = count.current + 1 ; }); return ( < > < input type = "text" value = {inputValue} onChange = {(e) = > setInputValue(e.target. value )} / > < h1 > Render Count: {count.current} < / h1 > < / > ); }