5 ms·
If I remember correctly, first versions of React were similar in that respect: you could just add a script tag to your page and you that’s it (save for the moun
by freetonik 8y ago
If I remember correctly, first versions of React were similar in that respect: you could just add a script tag to your page and you that’s it (save for the mount-point thing).
- wiennat 8y agoYou still can do the same with the current version.
- _bxg1 8y agoTechnically. But 1) Your "templates" look like this: React.createElement( "div", null, React.createElement(MyComponent, null), React.createElement( "ul", null, React.createElement( "li", null, "Thing 1" ), React.createElement( "li", null, "Thing 2" ), React.createElement( "li", null, "Thing 3" ) ) ) 2) Since things like decent state management don't come in the box, you're almost forced to start including other modules, which pushes you back towards a build system.