-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component-launching helper functions in React.Basic.DOM.Util #8
Comments
Work is being done to update the cookbook to PureScript 0.15. Is there any update on this? |
I'm having a bit of trouble understanding why this helper is necessary for the cookbook to be updated to Purescript 15. Its pretty straightforward to make a non-warning version for mounting a component as can be seen in the example in the README and the classic examples. If someone wants to make a PR, then I'm happy to consider merging it, but I also have a weak preference for staying close to the React API as much as possible. |
I think the issue is that the |
Thanks @ptrfrncsmrph, that helps fill in some gaps in context. It seems like a problem mostly unique to the Try Purescript's setup and not something most people will face using this library, but Im happy to merge in a little helper if people find it useful. Otherwise i think its fine for it to live in the cookbook |
Proposing that we add a
renderInRoot
helper function to make this common pattern easier:A slightly more verbose option is:
We could support both options, and reuse
createRootElement
inrenderInRoot
.For context, Halogen has some convenient helper functions for launching components, such as
awaitBody
in Halogen.Aff.Util:The text was updated successfully, but these errors were encountered: