3 ms·
What 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}
by brianshaler 11y ago
What 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...)