@openware/neodax-web-sdk
v1.0.104
Published
NeoDAX WEB SDK
Downloads
338
Readme
Neodax WEB SDK
The Neodax WEB SDK supplies reusable UI components for common web interfaces used in creating exchange platform applications, including, UI components and widgets. All components come with a simple, modern design, and can be used as-is or restyled with a custom theme. In addition to UI components, the library leverages React state management tools such as Providers, Hooks, and Utils to connect to the Neodax WEB SDK for JavaScript and pass data to the UI layer, simplifying state synchronization so that developers can concentrate on building.
Getting Started
- Add @openware/neodax-web-sdk and the necessary peer dependencies to your project:
// with npm
npm install --save @openware/neodax-web-sdk
- Render a CoreProvider in the root of your application.
import { CoreProvider } from '@openware/neodax-web-sdk'
const Root => () => {
return (
<CoreProvider>
<MyApp />
</CoreProvider>
)
}
- Add styles to the application.
import '@openware/neodax-web-sdk/index.css'
- Use the widgets to build out your application;
After adding all the necessary providers to the application root, you can use widgets to render balances, connect button, orderbook, and more.
import { OrderBookWidget } from '@openware/neodax-web-sdk'
const Page = () => {
return <OrderBookWidget />
}