@bolttech/client-react
v0.5.1
Published
This library was generated with [Nx](https://nx.dev).
Downloads
513
Maintainers
Keywords
Readme
@bolttech/client-react
This package is a collection of common utilities, modules, and components designed to be used with React. It includes helpers, enums, hooks, interfaces, page types, and several modules such as analytics, config, session, and translation. It's intended for use across multiple projects and teams.
Install
Using npm:
npm install @bolttech/client-react
or
yarn add @bolttech/client-react
Note that React must be installed as a peer dependency of this package. Make sure to install the version of React that your project requires.
Usage
Then, import the desired module(s) into your code:
import { Button, MySessionProvider } from '@bolttech/client-react';
function MyComponent() {
return (
<MySessionProvider>
<Button onClick={() => console.log('Button clicked!')}>
Click me!
</Button>
</MySessionProvider>
);
}
Contributing
Contributions are welcome! If you are member the bolttech team, please submit a pull request with any changes or additions you'd like to make.