Here is my react component...
I can't figure out why nyVariable
says that it is not defined...
import React from "react";
import { useEffect } from "react";
const Component = () => {
useEffect(() => {
const myVariable = "Jim"
}, []);
return(<div>{myVariable}</div>)
};
export default Component;
Thanks!