UNPKG
fannypack-v5
Version:
latest (5.0.0-rc.7)
5.0.0-rc.7
5.0.0-rc.0
An accessible, composable, and friendly React UI Kit
github.com/fannypackui
fannypackui/fannypack
fannypack-v5
/
src
/
Page
/
usePage.ts
10 lines
(8 loc)
•
189 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
*
as
React
from
'react'
;
import
{
PageContext
}
from
'./PageContext'
;
export
function
usePage
(
) {
const
context =
React
.
useContext
(
PageContext
);
return
{ ...context, }; }