UNPKG
@schema-render/search-table-react
Version:
latest (1.10.1)
ssr (2.2.0)
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.10.1
1.10.0
1.9.0
1.8.1
1.8.0
1.7.0
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.0.2
1.0.1
0.0.1
Conditional search table component.
github.com/Barrior/schema-render
Barrior/schema-render
@schema-render/search-table-react
/
dist
/
esm
/
hooks
/
useRootContext.js
7 lines
(6 loc)
•
188 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{ useContext }
from
"react"
;
import
RootContext
from
"../RootContext"
;
export
default
function
useRootContext
(
) {
const
rootCtx =
useContext
(
RootContext
);
return
rootCtx; }