@capitalos/react v1.2.1
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.
Error Handling
For details on how errors are managed within the SDK and how to handle them as a consumer or a maintainer, please see our Error Handling Guidelines.
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
10 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago