-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* backport svg shape rendering fix * remove forceUpdate warning * fixes to deferred hook commits * add pendingvalue to mangle * add export maps * Update debug.js * add server browser * add text path * improve compat types * support nodenext * containerInfo on portals * improve act * add client entry * compatible * oninput and onchange * fix test * less IE11
- Loading branch information
1 parent
730604e
commit d269b75
Showing
29 changed files
with
323 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const { render, hydrate, unmountComponentAtNode } = require('preact/compat'); | ||
|
||
function createRoot(container) { | ||
return { | ||
render(children) { | ||
render(children, container); | ||
}, | ||
unmount() { | ||
unmountComponentAtNode(container); | ||
} | ||
}; | ||
} | ||
|
||
exports.createRoot = createRoot; | ||
|
||
exports.hydrateRoot = function(container, children) { | ||
hydrate(children, container); | ||
return createRoot(container); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { render, hydrate, unmountComponentAtNode } from 'preact/compat' | ||
|
||
export function createRoot(container) { | ||
return { | ||
render(children) { | ||
render(children, container) | ||
}, | ||
unmount() { | ||
unmountComponentAtNode(container) | ||
} | ||
} | ||
} | ||
|
||
export function hydrateRoot(container, children) { | ||
hydrate(children, container) | ||
return createRoot(container) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { | ||
renderToString, | ||
renderToString as renderToStaticMarkup | ||
} from 'preact-render-to-string'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.