-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
How to render to string #459
Comments
Would it be possible to take the same approach that |
+1, I would like to let render function output a string as well, someing like:
So I can write the stdout content to a file. |
It looks like @zhanwang626 wrote something! https://github.com/zhanwang626/ink-render-string |
I've looked into this and I couldn't figure out how to implement a
const output = renderToString(<MyApp/>); If anyone has any ideas how to make that happen, I'd appreciate it! |
Going to mark this as "help wanted", in case there are some React reconciler/internals wizards that know how to disable all side effects (e.g. |
Is there a way to render to string? I am wanting to render to a file for documentation, etc.
The text was updated successfully, but these errors were encountered: