-
Notifications
You must be signed in to change notification settings - Fork 752
Closed
Description
Doing a SPA with react I have found it beneficial to have unmountReactComponents
publicly accessible. I have modded the react_ujs
file in this project to do this easily enough. I think there is an interesting discussion that can take place around this:
-
making it a 'revealing module pattern' is simple but where should it live really? A
ReactUjs
obj ? I actually just append it to React itself asReact.ujs
accessing them, obviously, asReact.ujs.unmountComponent
etc... -
I realize this may be outside of the scope you want to address with the gem. That being the case I can fork and maintain it separately
-
If interested I can work up a PR with the appropriate tests
Metadata
Metadata
Assignees
Labels
No labels