I notice that he only colon he uses is when he renders the component to the ReactDom. But if I try to leave the colons out after super(props) and render(), I get an error message telling me to put the there specifically. What am I doing wrong?
Also, I explain why the semicolons are there in the original post. I know they don’t belong. They aren’t in any of the tutorials I’ve watched, but if I don’t put them there, I get a syntax error demanding them in those exact spots.
At least the code seems to have shown up correctly on here this time around. The first time, it displayed the h1 element as an actual h1 element instead of showing the code. Weird.