@ndmspc/react-ndmbase
v0.0.11
Published
react-ndmbase - Made with create-react-library
Downloads
6
Readme
@ndmspc/react-ndmbase
Made with create-react-library
Install
npm install --save @ndmspc/react-ndmbase
Usage
import React from 'react'
import { localStore, redirectStore, zmq2wsStore, WebSocketComponent } from '@ndmspc/react-ndmbase'
import LocalStoreInfoUser from './components/LocalStoreInfoUser'
import RedirectUser from './components/RedirectUser'
import Zmq2wsAppInfoUser from './components/Zmq2wsAppInfoUser'
let store = {
app: zmq2wsStore,
local: localStore,
ws: redirectStore
}
const App = () => {
return (
<React.Fragment>
<WebSocketComponent store={store} />
<Zmq2wsAppInfoUser store={store.app} />
<LocalStoreInfoUser store={store.local} name='ndmvr' />
<RedirectUser store={store.ws} />
</React.Fragment>
)
}
export default App
License
MIT © ndmspc