Uncaught ReferenceError: exports is not defined: am missing something here? p

Tell us what’s happening:

React: Write a React Component from Scratch :Uncaught ReferenceError: exports is not defined:

My code so far

// change code below this line
import React from 'react';

class MyComponent  extends React.Component {
constructor(props) {
render() {
  return (
      <h1>My First React Component!</h1>
export default MyComponent;

Your browser information:

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

Challenge: Write a React Component from Scratch

Link to the challenge:

It looks like you don’t need to do any imports or exports in this challenge.

yes!, but after removing my imports also i getting same issue!

You are using root, re-read the challenge text.

There is a div with id=‘challenge-node’ available for you to use.

1 Like

thanks man! , i got this yesterday night