7 ms·
I feel like there's strong friction between HTML trying to semantically describe the structure of a page page and JS frameworks where you try to build custom re
by enlyth 7y ago
I feel like there's strong friction between HTML trying to semantically describe the structure of a page page and JS frameworks where you try to build custom reusable components which might not fall into the rigid structure defined by classic HTML.
- cljs-js-eval 7y agoThe spec authors would have done better to make the semantic stuff attributes. It's difficult to tell what CSS rules you're going to have to apply to any given semantic tag, which makes people instinctively reach for <div>s and <span>s. React native gets this right, with <Text> and <View> and just a handful of others, with attributes like testID and accessibilityLabel driving automated software that needs to read the screen.
- rangerpolitic 7y agoThat's because people are trying to use HTML for applications rather than documents.