Skip to content
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

passing any tag name and css, styles and no key required for the ports #15

Open
hipertracker opened this issue Sep 20, 2017 · 0 comments

Comments

@hipertracker
Copy link

hipertracker commented Sep 20, 2017

I created a more generic solution. It allows using any tag for the generated React node. It can also pass down classNames and styles to it. Sometimes it is important because injecting <div/> may mess with external HTML and CSS rules.

I also don't need to pass a key parameter to <Elm/> for sending changed data through ports.
https://gist.github.com/hipertracker/1423ac96662d49e432f20472478499b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant