React - Write a React Component from Scratch

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// Change code below this line
class MyComponent {
  <h1>'My First React Component!'</h1>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.124 YaBrowser/ Yowser/2.5 Safari/537.36

Challenge: React - Write a React Component from Scratch

Link to the challenge:

Вот так я поняла это задания,оно конечно не правильно,но по другому я его понять не могу.)

Typo here, there isn’t a function called rehder

Такой ответ мне не понятен.

class MyComponent extends React.Component {
constructor (props){
super (props);
render (){
return (

'My First React Component!'

); } }; ReactDOM.rehder(, document.getElementById('challenge-node'));

Мой код неверный почему?

You have spelled “render” wrong

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.