@railzai/railz-visualizations-react
v0.0.8-alpha.35
Published
React specific wrapper for @railzai/railz-visualizations
Downloads
245
Readme
Accounting Data as a Service™ is the solution that makes sense of your business customers' financial data.
components-react
This is a react wrapper for @railzai/railz-visualization
, it is based of stencil sample template
Local Development
Link Your Packages
To build and test your components locally, you will need to link the packages together. This is a replacement for publishing packages to npm that allows you to develop and test locally.
To do this, we’ll use the npm link command, follow the steps below to setup local environment.
- Clone this repository
- Install dependencies using yarn install or npm install
- Build the packages/components library and create a symlink to the library.
npm run build
npm link
With the symlink created, the React component library will need to consume the stencil component library.
Go to packages/components-react
folder and run the below:
npm link @railzai/railz-visualizations
And with that, the react component library is linked to the stencil component library are linked together.
In your react component library, you need to create its own symlink.
npm run build
npm link
Usage
In your own React Application, you can run the below to link both libraries
npm link @railzai/railz-visualizations-react
To make use of the React component library in your React application, import the components from the React component library in the file where you want to use them.
import { RailzVisualizations } from '@railzai/railz-visualizations-react';