Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

strictmode causes double render

Your App component is rendered within React.StrictMode 
which is what causes your code to run in strict mode and 
in strict mode the consoles are shown twice because each function 
is made to run twice in development mode
 
PREVIOUS NEXT
Tagged: #strictmode #double #render
ADD COMMENT
Topic
Name
1+1 =