Skip to content
Snippets Groups Projects
index.js 640 B
Newer Older
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
import React from 'react'
import ReactDOM from 'react-dom';
import image from './8.jpg'
import Image from './Image';
import BarChart from './BarChart';
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
import Tabs from './Tabs';
import Prediction from './Prediction';
import { BarTest } from './BarCharts'; 
//import data from './data.json';
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed

const data = require('./data.json')
//const element = <h1>Bonjour, monde</h1>;
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
const root = document.getElementById('root');
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
let arr = [5, 10, 2, 3, 0, 100, 50];
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
//ReactDOM.render(<BarChart data={arr}/>, root);
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
const pred = <Prediction data={data} img={image} label="Trombone" />
// ReactDOM.render(pred, root);
ReactDOM.render(<BarTest />, root);