News for hackers. Stuff that matters.
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

    dom.div({ props }, ...)
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:

    MyComponent({ props }, ...)
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.

There are no comments on this comment yet.