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

This works correctly in preact proper

Preact doesn't really support HTML comments, but it is possible to (mis)use it to generate HTML comments anyway, by creating an element with a name that starts with `!--` and...

This improves performance by another 5-10% compared to master (5.2.2): It also corrects the type definitions, reduces size by ~50% and removes pretty-printing entirely from the default bundle. It can...

We've noticed a discrepancy in how preact / react server renders a component that looks like this: ``` import React from "preact/compat"; import "./styles.css"; export default function App() { return...

I am configuring a node project to use typescript, tsx, preact and preact-render-to-string. I pulled this code from one of the preact-render-to-string examples. ```javascript import render from 'preact-render-to-string'; import {...

Fixes https://github.com/preactjs/preact-render-to-string/issues/343

I am using `[email protected]` and might have found a bug (or I just have skill issues). Thanks in advance! My code looks something like that: ```tsx async function renderPage() {...

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....

This PR that adds a streaming renderer. Main difference to `preact-ssr-prepass` is that it only awaits suspense boundaries and keeps everything else synchronous. This avoids a flooding the event loop...