Uncaught ReferenceError: React is not defined - Please Help

I have an errors in the console that read:

// running tests
The component should render a div element.
The div element should have its styles defined by the styles object.
// tests completed
// console output
Uncaught ReferenceError: React is not defined

Is this a bug?

Your code so far

const styles = {
color: "purple",
fontSize: 40,
border: "2px solid purple"

// change code above this line
class Colorful extends React.Component {
render() {
  // change code below this line
  return (
    <div style={styles}>Style Me!</div>
  // change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36 Edg/84.0.522.59.

Challenge: Add Inline Styles in React

Link to the challenge:

Thanks for letting us know. We just rolled back some updates we did a while ago. Can you please check and confirm if its working again?

1 Like

I am having this issue on the “React: Use State to Toggle an Element” module. Even with out my solution, in the console It says that React is not defined. Please help. Thank you!!

I’m having the same issue on the other React lessons too. When I look at the console it says that a cookie associated with cross-site resource was set without the ‘SameSite’ attribute. Also, that the DOM Node could not be resolved into a valid node. I tested this on various browsers: Chrome, Edge, Firefox, and Brave, and it’s happening on all of them.

1 Like

Everything is working now. Thanks.

It is working Thanks!!

Yeah, it’s working for me as well now. Thanks for the fix!