FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rescript-react/src/ReactDOMStatic.res at master · rescript-lang/rescript-react · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
rescript-lang
/
rescript-react
Public
Notifications
You must be signed in to change notification settings
Fork
45
Star
517
Code
Issues
12
Pull requests
3
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rescript-react
/
src
/
ReactDOMStatic.res
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (52 loc) · 2.09 KB
Breadcrumbs
rescript-react
/
src
/
ReactDOMStatic.res
Copy path
File metadata and controls
62 lines (52 loc) · 2.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
type
abortSignal
// WebAPI.EventAPI.abortSignal
type
nodeStream
// NodeJs.Stream.stream
type
readableStream
// WebAPI.FileAPI.readableStream
type
postponedState
type
prerenderOptions
<
'error
>
=
{
bootstrapScriptContent
?:
string
,
bootstrapScripts
?:
array
<
string
>,
bootstrapModules
?:
array
<
string
>,
identifierPrefix
?:
string
,
namespaceURI
?:
string
,
onError
?:
'error
=>
unit
,
progressiveChunkSize
?:
int
,
signal
?:
abortSignal
,
}
type
staticResult
=
{
prelude
:
readableStream
,
postponed
:
postponedState
}
/**
prerender renders a React tree to a static HTML string using a Web Stream.
[Read more on the React Documentation](https://react.dev/reference/react-dom/static/prerender)
*/
@
module
(
"react-dom/static"
)
external
prerender
: (
React
.
element
, ~
options
:
prerenderOptions
<
'error
>
=
?)
=>
promise
<
staticResult
>
=
"prerender"
/**
resumeAndPrerender continues a prerendered React tree to a static HTML string using a Web Stream.
[Read more on the React Documentation](https://react.dev/reference/react-dom/static/resumeAndPrerender)
*/
@
module
(
"react-dom/static"
)
external
resumeAndPrerender
: (
React
.
element
,
postponedState
,
~
options
:
prerenderOptions
<
'error
>
=
?,
)
=>
promise
<
staticResult
>
=
"resumeAndPrerender"
type
staticResultNode
=
{
prelude
:
nodeStream
,
postponed
:
postponedState
}
/**
prerenderToNodeStream renders a React tree to a static HTML string using a Node.js Stream.
[Read more on the React Documentation](https://react.dev/reference/react-dom/static/prerenderToNodeStream)
*/
@
module
(
"react-dom/static"
)
external
prerenderToNodeStream
: (
React
.
element
,
~
options
:
prerenderOptions
<
'error
>
=
?,
)
=>
promise
<
staticResultNode
>
=
"prerenderToNodeStream"
/**
resumeAndPrerenderToNodeStream continues a prerendered React tree to a static HTML string using a a Node.js Stream.
[Read more on the React Documentation](https://react.dev/reference/react-dom/static/resumeAndPrerenderToNodeStream)
*/
@
module
(
"react-dom/static"
)
external
resumeAndPrerenderToNodeStream
: (
React
.
element
,
postponedState
,
~
options
:
prerenderOptions
<
'error
>
=
?,
)
=>
promise
<
staticResultNode
>
=
"resumeAndPrerenderToNodeStream"
Back
|
FazBrowse Home
|
New Git URL