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

Refactor ReactDOM to use Html (which uses Buffers, not Printf) #156

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

davesnx
Copy link
Member

@davesnx davesnx commented Aug 7, 2024

  • Bring html_of_jsx's JSX module here and factor it
  • Remove "_onclick" hack since it's not used anymore
  • Use Html module in renderToString* and renderToLwtStream, making it probably x10 faster if not more. There are a tiny bit of allocations that we might be able to remove, but so far I have cleanup up most of them (for example Attribute.omit unsure if it allocates that unused string?)

@davesnx davesnx merged commit c9883ab into main Aug 7, 2024
2 checks passed
@davesnx davesnx deleted the use-html-instead-of-printf branch August 7, 2024 19:52
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

Successfully merging this pull request may close these issues.

1 participant