We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm a bit confused by this part of the readme/doc. Could this snippet:
import {ImportedStream, drainHydrateMarks} from 'react-imported-component'; let streamUID = 0; const html = renderToString( <ImportedStream takeUID={uid => streamUID=uid}> <YourApp /> </ImportedStream>) + printDrainHydrateMarks(streamUID);
be
import {ImportedStream, printDrainHydrateMarks} from 'react-imported-component'; import { renderToNodeStream } from 'react-dom/server'; let streamUID = 0; const html = renderToNodeStream( <ImportedStream takeUID={uid => streamUID=uid}> <YourApp /> </ImportedStream>) + printDrainHydrateMarks(streamUID);
? Or maybe I'm just missing something. Thanks for you help.
The text was updated successfully, but these errors were encountered:
My bad. But yes - you are absolutely right - it would just work as you written.
Sorry, something went wrong.
All good. Thanks for your quick answer 👍.
9e97e86
Readme updated. Thank you for the issue.
No branches or pull requests
Hi,
I'm a bit confused by this part of the readme/doc. Could this snippet:
be
? Or maybe I'm just missing something.
Thanks for you help.
The text was updated successfully, but these errors were encountered: