reactbook icon indicating copy to clipboard operation
reactbook copied to clipboard

React.DOM is undefined

Open pheeno opened this issue 8 years ago • 3 comments

use version 16 to build the code, but it failed in lesson ONE T_T, build 'Hello world' and then throw the error, HELP T_T

pheeno avatar Oct 16 '17 05:10 pheeno

Hey I don't think that code is valid anymore. Include the Dom-factories with this script

<script src="https://unpkg.com/[email protected]/index.js"></script>

Then everywhere the book uses React.DOM replace it with ReactDOMFactories

e.g

ReactDOMFactories.h1(null, "Hello World!")

Happy Coding!

jonotko avatar Dec 17 '17 16:12 jonotko

thanks, it worked!

MaynardTool avatar Jan 27 '18 08:01 MaynardTool

thank, it has worked!

Rogpe-Prog avatar Jun 09 '19 22:06 Rogpe-Prog