Skip to content
Snippets Groups Projects
Commit a50ea869 authored by Matthieu BELLUCCI's avatar Matthieu BELLUCCI
Browse files

added tabs

parent 2bf6ddb4
Branches
No related merge requests found
node_modules
This diff is collapsed.
function Prediction(props) {
return (
<div className="Prediction">
<div className="Image">
<img
src={props.img}
alt={props.label}
/>
</div>
<div className="PredictedClass">
<h1>{props.class}</h1>
</div>
</div>
);
}
export default Prediction;
\ No newline at end of file
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import 'react-tabs/style/react-tabs.css';
export default () => (
<Tabs>
<TabList>
<Tab>Title 1</Tab>
<Tab>Title 2</Tab>
</TabList>
<TabPanel>
<h2>Any content 1</h2>
</TabPanel>
<TabPanel>
<h2>Any content 2</h2>
</TabPanel>
</Tabs>
);
\ No newline at end of file
......@@ -3,7 +3,12 @@ import ReactDOM from 'react-dom';
import image from './8.jpg'
import Image from './Image';
import BarChart from './BarChart';
import Tabs from './Tabs';
import Prediction from './Prediction';
const element = <h1>Bonjour, monde</h1>;
const root = document.getElementById('root');
let arr = [5, 10, 2, 3, 0, 100];
ReactDOM.render(<BarChart data={arr}/>, root);
\ No newline at end of file
//ReactDOM.render(<BarChart data={arr}/>, root);
const pred = <Prediction img={image} label="Trombone" class="Trombone" />
ReactDOM.render(pred, root);
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment