Strata - v1.4.10
GitHub
Examples
Preparing search index...
strata
createReactAPI
Variable createReactAPI
Const
createReactAPI
:
<
E
extends
{}
>
(
world
:
World
<
E
>
,
)
=>
{
Component
:
<
P
extends
keyof
E
>
(
props
:
{
children
?:
ReactNode
;
data
?:
E
[
P
]
;
name
:
P
}
,
)
=>
|
React.ReactElement
<
any
,
string
|
React.JSXElementConstructor
<
any
>
>
|
null
;
Entities
:
<
D_1
extends
E
>
(
{ in: source, ...props }
:
CommonProps
<
D_1
>
&
{
in
:
Bucket
<
D_1
>
|
D_1
[]
;
}
,
)
=>
JSX.Element
;
Entity
:
<
D
extends
E
>
(
props
:
CommonProps
<
D
>
&
{
entity
?:
D
}
&
{
ref
?:
React.ForwardedRef
<
D
>
;
}
,
)
=>
ReactElement
;
useCurrentEntity
:
()
=>
E
;
world
:
World
<
E
>
;
}
Type Declaration
<
E
extends
{}
>
(
world
:
World
<
E
>
,
)
:
{
Component
:
<
P
extends
keyof
E
>
(
props
:
{
children
?:
ReactNode
;
data
?:
E
[
P
]
;
name
:
P
}
,
)
=>
|
React.ReactElement
<
any
,
string
|
React.JSXElementConstructor
<
any
>
>
|
null
;
Entities
:
<
D_1
extends
E
>
(
{ in: source, ...props }
:
CommonProps
<
D_1
>
&
{
in
:
Bucket
<
D_1
>
|
D_1
[]
;
}
,
)
=>
JSX.Element
;
Entity
:
<
D
extends
E
>
(
props
:
CommonProps
<
D
>
&
{
entity
?:
D
}
&
{
ref
?:
React.ForwardedRef
<
D
>
;
}
,
)
=>
ReactElement
;
useCurrentEntity
:
()
=>
E
;
world
:
World
<
E
>
;
}
Type Parameters
E
extends
{}
Parameters
world
:
World
<
E
>
Returns
{
Component
:
<
P
extends
keyof
E
>
(
props
:
{
children
?:
ReactNode
;
data
?:
E
[
P
]
;
name
:
P
}
,
)
=>
|
React.ReactElement
<
any
,
string
|
React.JSXElementConstructor
<
any
>
>
|
null
;
Entities
:
<
D_1
extends
E
>
(
{ in: source, ...props }
:
CommonProps
<
D_1
>
&
{
in
:
Bucket
<
D_1
>
|
D_1
[]
;
}
,
)
=>
JSX.Element
;
Entity
:
<
D
extends
E
>
(
props
:
CommonProps
<
D
>
&
{
entity
?:
D
}
&
{
ref
?:
React.ForwardedRef
<
D
>
;
}
,
)
=>
ReactElement
;
useCurrentEntity
:
()
=>
E
;
world
:
World
<
E
>
;
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
GitHub
Examples
Strata - v1.4.10
Loading...