@burksbrand/foundational
v0.0.6
Published
foundational elements for building sites
Downloads
2
Readme
Foundation Elements for React Site
Foundational elements for react
Features
useSettings
a hook for accessing a context object for settings loaded at runtime.
useFetchJsonAsT
a hook wrapper around fetch for pulling a json file as a typed object
SettingsProvider
a context provider object for wrapping children which depend on the configuration file, when the endpoint has loaded the children have access via useSettings hook
Examples
See src/example under repo for sample usage