4 ms·
Your living in a react mindset. They are not interchangeable unless you do things the react way. Drop one html tag like < <div class="main"> in react and it
by wolco 7y ago
Your living in a react mindset.
They are not interchangeable unless you do things the react way. Drop one html tag like < <div class="main"> in react and it breaks.
Being popular has no bearing on cult-ish status. Popular places like Starbucks can be described that way where a special language is required to order a cup of coffee.
- ng12 7y ago> Drop one html tag like <div class="main"> in react and it breaks. Can you explain? That is entirely valid JSX and you should be able to drop it in any React component.
- wolco 7y agoI didn't know class was valid in jdx previously this had to be changed to className
- ovyerus 7y agoclass is a perfectly valid property in jsx, as it just gets mapped to `{"class": ...}`, however react adopts to use className instead because of the dom api `el.className = ...`, but also some stuff like older versions of IE. most other jsx-based things like hyperapp accept `class` just fine from what i know