Re:Vue.js: the good, the meh, and the ugly
by DougBTX on Thursday July 05, 2018 @07:37PM
(#17467801)
We’re still using https://www.npmjs.com/package/react-dom-factories for plain DOM elements, so code looks like
For our own components, we export the output of React.createFactory https://reactjs.org/docs/react-api.html#createfactory rather that the component itself, so rendering code looks like:
I realise that both of those are marked legacy, with a nudge towards using JSX instead, but they are pretty thin wrappers around createElement so it seems like a small dependency.
[ Parent
| on HN ]
There are no comments on this comment yet.