Trilium Frontend API
Preparing search index...
<internal>
ComponentClass
Interface ComponentClass<P, S>
interface
ComponentClass
<
P
=
{}
,
S
=
{}
>
{
new
ComponentClass
(
props
:
P
,
context
?:
any
)
:
Component
<
P
,
S
>
;
contextType
?:
Context
<
any
>
;
defaultProps
?:
Partial
<
P
>
;
displayName
?:
string
;
getDerivedStateFromError
?
(
error
:
any
)
:
Partial
<
S
>
;
getDerivedStateFromProps
?
(
props
:
Readonly
<
P
>
,
state
:
Readonly
<
S
>
,
)
:
Partial
<
S
>
;
}
Type Parameters
P
=
{}
S
=
{}
Index
Constructors
constructor
Properties
context
Type?
default
Props?
display
Name?
Methods
get
Derived
State
From
Error?
get
Derived
State
From
Props?
Constructors
constructor
new
ComponentClass
(
props
:
P
,
context
?:
any
)
:
Component
<
P
,
S
>
Parameters
props
:
P
Optional
context
:
any
Returns
Component
<
P
,
S
>
Properties
Optional
context
Type
contextType
?:
Context
<
any
>
Optional
default
Props
defaultProps
?:
Partial
<
P
>
Optional
display
Name
displayName
?:
string
Methods
Optional
get
Derived
State
From
Error
getDerivedStateFromError
?
(
error
:
any
)
:
Partial
<
S
>
Parameters
error
:
any
Returns
Partial
<
S
>
Optional
get
Derived
State
From
Props
getDerivedStateFromProps
?
(
props
:
Readonly
<
P
>
,
state
:
Readonly
<
S
>
)
:
Partial
<
S
>
Parameters
props
:
Readonly
<
P
>
state
:
Readonly
<
S
>
Returns
Partial
<
S
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
context
Type
default
Props
display
Name
Methods
get
Derived
State
From
Error
get
Derived
State
From
Props
Trilium Frontend API
Loading...