Menu

52 attribute names hold our 76 public pages together, and React spells eleven of them with a capital letter
📰

52 attribute names hold our 76 public pages together, and React spells eleven of them with a capital letter

DEV Community: frontend·Daniel Pertu·22 minutes ago
#f4STCpub
#devtofrontend#devto#dev#attributes#attribute
Long article (1805 words) — no AI summary yet.
Reading 0:00
15s threshold

Everybody counts elements. Nobody counts attributes, which is odd, because the attributes are where the framework's opinions show up. An element census tells you what the markup is made of. An attribute census tells you who wrote it.

So I counted ours. The subject is Nakodo , 76 public pages served by Next 16, every page server rendered, no client-side navigation involved in what arrives.

How it was measured

The 76 URLs come from the sitemap . Each page is fetched with curl and a browser user agent, not read out of a browser, because my browser profile is signed in and a signed-in response is not what a visitor gets. Then every document goes through Python's html.parser with a counter per attribute name.

Three traps, all of which produce confident nonsense if you miss them:

The React flight payload is a second copy of the page. It sits inside <script> tags as an escaped string. Counting attributes with a regular expression over the raw bytes therefore counts most of them twice.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.