Render a Class Component to the DOM - II

Render a Class Component to the DOM - II
0

#1

For whatever reason I keep getting the following error when attempting to run my code

Document.getElementById is not a function

Why is this error rendered here?

Your code so far



class TypesOfFood extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <h1>Types of Food:</h1>
        {/* change code below this line */}
          <Fruits />
          <Vegetables />
        {/* change code above this line */}
      </div>
    );
  }
};

// change code below this line
ReactDOM.render(<TypesOfFood />, Document.getElementById('challenge-node'));

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/render-a-class-component-to-the-dom


#2

Lower case d. document.getElementById()


#3

Lol, I discovered that not 5 minutes ago! Thanks for the help.


#4

Document is not the same as document