3 ms·
> I'd either just put the content in an ID-ed span and have a script to replace the content And so your script is broken when someone else in your team (or may
by ggregoire 11mo ago
> I'd either just put the content in an ID-ed span and have a script to replace the content
And so your script is broken when someone else in your team (or maybe even yourself) renames or removes the ID and forgets to search in the whole project if some piece of code depends on this ID. JSX fixed all that mess 10+ years ago.
- cluckindan 11mo agoYet you still need IDs for ARIA attributes, so now the JSX also needs a pile of shared variables