Everything is properly configured. but nothing is displayed on the screen. what is the problem? Full Code

// App var App = React.createClass({ render: function() { return ( <div> <Nav /> <Header /> </div> ) } }); // Nav var Nav = React.createClass({ render: function() { return ( <ul className="nav nav-pills"> <li role="presentation" className="active"><a href="#">вкладка</a></li> <li role="presentation"><a href="#">вкладка</a></li> <li role="presentation"><a href="#">вкладка</a></li> </ul> ) } }); // Header var Header = React.createClass({ render: function() { return ( <h1 className="foo">привет</h1> ) } }); React.render(<App/>, document.querySelector("#mm")); 
  • Linked to the code in "enter the description of the link here" - riiuvuvd.q
  • one
    the first error in the console - TypeError: React.render is not a function - Jean-Claude

1 answer 1

You have React.render wrong

 ReactDOM.render(<App/>, document.querySelector("#mm")); 

Then everything works http://codepen.io/anon/pen/xOJaxK

Based on https://stackoverflow.com/questions/26627665/error-with-basic-react-example-uncaught-typeerror-undefined-is-not-a-function