@ndmspc/react-ndmbase

0.0.11 • Public • Published

@ndmspc/react-ndmbase

Made with create-react-library

NPM JavaScript Style Guide

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ndmspc/react-ndmbase

Weekly Downloads

2

Version

0.0.11

License

MIT

Unpacked Size

40.2 kB

Total Files

6

Last publish

Collaborators

  • mvala