-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change how Preact's
render
/hydrate
functions are re-export via th…
…e `preact/dom` namespace to match changes in upstream
- Loading branch information
1 parent
00745f5
commit 7c410c7
Showing
4 changed files
with
18 additions
and
22 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
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
/** | ||
* Re-export render/hydrate from 'preact' as 'preact/dom' (see ./tsconfig.json) | ||
* in order to make it more consistent with React. This makes remapping the | ||
* imports for React builds simple (preact/dom --> react-dom). | ||
* | ||
* @fileoverview | ||
*/ | ||
|
||
export {hydrate, render} from 'preact'; | ||
|
||
// eslint-disable-next-line no-restricted-syntax | ||
declare module 'preact/dom' {} |
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