@capitalos/react
v1.6.0
Published
integrate CapitalOS into your react app
Readme
CapitalOS for React
React components for integrating with CapitalOS
Requirements
React 16.8.0 or later
Installation
npm
npm install @capitalos/reactyarn
yarn add @capitalos/reactpnpm
pnpm add @capitalos/reactDocumentation
Please refer to the official docs for more details.
Usage
In order to use the components you will need to obtain a client authentication token. refer to the CapitalOS documentation for more information.
import { App } from '@capitalos/react'
function MyComponent() {
// ... obtain token from backend
return (
<App token={token}>
)
}TypeScript support
TypeScript definitions for @capitalos/react are built into the npm package and should be automatically picked up by your editor.
