Web folks in #a11y #accessibility #ableism might explore or re-explore why a #semantic #declarative approach to expressing content in #HTML #HTM5 #XML made #SystemsThinking sense. Can the #DOM co-exist for documents alongside #Javascript practices? #Inclusion not exclusion?
1
3
12
I think so. For example, React is designed to create reusable UI or DOM patterns. The issue here: Most engineers don't think about the DOM context of where they might use this pattern.
Solution: all patterns' container element tag name should be customizable.
2
I do this with an `as` prop:
const Thing = ({ as: Container = 'div', ...props }) => (
<Container {...props}>
content would go here
</Container>
);
1


