@burksbrand/foundational
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @burksbrand/foundational

Weekly Downloads

0

Version

0.0.6

License

AGPL-3.0-or-later

Unpacked Size

43 kB

Total Files

5

Last publish

Collaborators

  • trocar