UNPKG
@ovine-eason/core
Version:
latest (0.3.2)
0.3.2
0.3.1
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.1.9
Build flexible admin system with json.
CareyToboo/ovine
@ovine-eason/core
/
lib
/
components
/
app
/
context.js
10 lines
(9 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ useContext, createContext }
from
'react'
;
export
const
AppContext
=
createContext
({
locale
:
'zh-CN'
,
enableRouteTabs
:
true
,
setContext
:
() =>
{
//
}, });
export
const
useAppContext
= (
) =>
useContext
(
AppContext
);