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

Is there a way to get the name of variant in type

$
0
0

Thanks for your quick response.

I am learning redux toolkit, and try to make it work on ReScript + Preact.

The reducers need some unique string for the action name (example code, so I think the type name is quite suitable for this case.

Here is my sample code, and I need to define action names manually now


Viewing all articles
Browse latest Browse all 2592

Trending Articles