forumone-libnaep
v1.3.18
Published
```sh npm i forumone-libnaep ```
Downloads
205
Readme
Usage
npm i forumone-libnaep
Install the recommended peer dependencies.
Usage in a React app
Most components within this library require the use of ThemeProvider
from @emotion/react
and QueryClientProvider
from react-query
. Example of basic usage for an app:
import { ThemeProvider } from '@emotion/react';
import { QueryClient, QueryClientProvider } from 'react-query';
import { theme } from 'forumone-libnaep';
const queryClient = new QueryClient();
function MyApp() {
return (
<ThemeProvider theme={theme}>
<QueryClientProvider client={queryClient}>
...
</QueryClientProvider>
</ThemeProvider>
);
}