Skip to content
Snippets Groups Projects
index.js 521 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';
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
import data from './data.json';
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed

Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
const element = <h1>Bonjour, monde</h1>;
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" />
Matthieu BELLUCCI's avatar
Matthieu BELLUCCI committed
ReactDOM.render(pred, root);