function CodingDifficulty() {
const [isHard, setIsHard] = useState(false);
useEffect(() => {
setIsHard(true);
}, []);
return (
<div>
<h1>Is coding hard?</h1>
<p>{isHard ? "😓 Yes, coding is hard to learn" : "😎 No, coding is not hard."}</p>
</div>