preact-render-to-string icon indicating copy to clipboard operation
preact-render-to-string copied to clipboard

:page_facing_up: Universal rendering for Preact: render JSX and Preact components to HTML.

Results 61 preact-render-to-string issues
Sort by recently updated
recently updated
newest added

We're currently working on creating unit tests and as a starter, we're trying to snapshot the components using renderToString with shallow set to true. The problem is that a object...

Shallow rendering this: `` Creates this: `` Is that intended behaviour? Why not just ``

bug

This is likely a basic misunderstanding, though I've read a lot of tickets and tried a lot of code. I'm working on Preact as an 11ty template language. I'd like...

This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....

Might be marginally faster? Probably easier to maintain at the very least -- easier to tell what properties are being replaced and which aren't. I did this by comparing against...

Relates to https://github.com/preactjs/preact/issues/4442 This adds the comments approach described in the RFC, these comments will be used with resumed hydration to correctly allocate the DOM-children required to rehydrate a Suspense...

This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....

Might/probably will need work in core as well (though arguably this is more useful on the server? not sure), definitely could do with some more tests yet.

Looking at some Remix/React-Router issues (CC @sbesh91, this isn't the only issue though) and came across this. At the moment we don't split the document following any suspended children, only...