import { useContext, useEffect, useState } from 'react';
const Log =  ()  =>  {
    useEffect(()  => {
        console.log('Running ...')
    },[])
    return(<p>here</p>)
}
export default Log;
Whenever this code runs, I get Running... messages twice in the browser console.
I think it should run once, as I have an empty second parameter in useEffect.
Can anybody explain why it is getting run twice?
 
     
     
     
     
    