fidr / phoenix_live_react

Render React.js components in Phoenix LiveView views
MIT License
238 stars 42 forks source link

auto generated element id #9

Closed ahmadsoe closed 1 year ago

ahmadsoe commented 3 years ago

Hi, since element id is required for LiveView. I think it'd be cool to have it autogenerated but still have the ability to set custom id.

fidr commented 1 year ago

I forgot to close this, but I'm afraid this is not possible. Autogenerating means the id's might change if you rerender your liveview, which is not what you want.