0.3.1 • Published 6 years ago

@obsk/react-jsroot v0.3.1

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
6 years ago

react-jsroot

Create app using CRA

Info: https://github.com/facebookincubator/create-react-app

Install pacakge

Install @obsk/react-jsroot

npm install --save @obsk/react-jsroot

or

yarn add @obsk/react-jsroot

Example for your project

Note that example is located at src/demo/App.js

Example component can be added to the app like this

[mvala@vala myapp]$ cat src/demo/App.js 
import React from 'react';
import JSRootExample from '../lib/components/JSRootExample';
import JSRootBrowser from '../lib/components/JSRootBrowser';

const App = () => (
  <div>
    <JSRootExample name='hist1' />
    <JSRootBrowser 
      name='MyBrows'
      filename="https://alieos.saske.sk//eos/alike.saske.sk/scratch/hsimple.root" 
      obj="hpxpy;1" 
      drawOptions="colz" 
      displayType="simple" 
      onScriptLoaded={this.onScriptLoaded}
      tree={{width: "250px", height: "500px", float: "left"}} 
      main={{width: "500px", height: "500px"}} 
    />
  </div>
);

export default App;

Note

Project was generated via https://github.com/UdiliaInc/create-react-library

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago