Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1837

Custom data-attributes in JSX

$
0
0

Thank you for the link to playground with the code example.

Now I understand where I was making a mistake. Thank You a lot!

I’ll admit that this overwriting of modules, adding external is a bit confusing.

Do future versions of Rescript have plans to simplify this?

Many of the UI libraries in the React ecosystem use data-attributes, it would be nice if they could be declared without all this boilerplate (in the commercial project I work in, we have about 1200 components in the project - our own and from UI libraries that rely heavily on data-attributes to store meta-data and control CSS styles).

I’m having a hard time imagining arguments to convince the rest of the team that having to define these props override declarations in each component file to add data-attributes is, as you pointed out, “close to a version of typescript” :frowning:


Viewing all articles
Browse latest Browse all 1837

Trending Articles