Add random id prefix to input ids
Perhaps React's useId hook can help us achieve that.
@andrepinho thought the same but this is only react@^18 . Not sure if we can use it yet.
What should be the approach here then? Generate any random string?
@felipefreitag, the random string should be shared between the server and client to avoid hydration errors. Once we implement #124, we'll have a Context for each field. That might help with this issue: if we store the random id in the Context, it will be shared. Maybe we wait for #124?
We can use useId now that v3 is gonna require react@18.
I'm closing this issue since it is a duplicate of #238