You've heard this before, but don't use <h1> or <h2> etc. for style, use them for *semantic meaning*, the logical structure of your page/app.
It matters because a lot of assistive tech users understand and navigate with headings.
Classes for styling, tags for meaning.

-
Show this thread
-
Replying to @ryanflorence
Even better, use a <Heading> component abstraction that uses React context to automatically set heading levels. That way components don't need to have special logic and can be used anywhere and have good accessibility by default.
6 replies 1 retweet 96 likes -
Replying to @montogeek @ryanflorence
In some places, yeah
1:20 PM - 3 Feb 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 