3 ms·
or even h1 = React.createFactory('h1'), ... and so on for every that you use in the file, and then use h1({}, 'text') in the code.
by wereHamster 11y ago
or even h1 = React.createFactory('h1'), ... and so on for every that you use in the file, and then use h1({}, 'text') in the code.
- brianshaler 11y agoWhat about h1 = React.DOM.h1;? Personally, I moved from using DOM tag names as variable names ('a' being the worst) to saving 'var DOM = React.DOM' (or '{DOM} = React') and then calling DOM.a(props, children...)