Re:Why Is Front-End Development So Unstable?
by freetonik on Thursday May 31, 2018 @02:05AM
(#17194281)
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).
[ Parent
| on HN ]
Re:Why Is Front-End Development So Unstable?
by wiennat on Thursday May 31, 2018 @05:26AM
(#17195056)
You still can do the same with the current version.
Technically. 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.