mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
basic routing implemented
This commit is contained in:
parent
a85093491b
commit
c08d88ec58
1 changed files with 7 additions and 4 deletions
|
|
@ -1,13 +1,16 @@
|
|||
import React, { Component } from 'react';
|
||||
import { BrowserRouter, Route } from 'react-router-dom';
|
||||
import { Checkbox } from 'stremio-common';
|
||||
|
||||
class App extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<span>Stremio</span>
|
||||
<Checkbox checked={true} />
|
||||
</div>
|
||||
<BrowserRouter>
|
||||
<div>
|
||||
<Checkbox checked={true} />
|
||||
<Route path={'/home/:message'} component={({ match }) => <span>{match.params.message}</span>} />
|
||||
</div>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue