UNPKG
create-bhvr
Version:
latest (0.6.4)
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.6
0.5.6-alpha.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.12
0.3.11
0.3.10
0.3.9
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Create a new bhvr project
create-bhvr
/
dist
/
templates
/
extras
/
client
/
src
/
App.tsx
/
App-with-reactrouter.js
11 lines
(10 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
BrowserRouter
,
Routes
,
Route
}
from
"react-router"
;
import
Home
from
"./components/Home"
;
function
App
(
) {
return
(
<
BrowserRouter
>
<
Routes
>
<
Route
path
=
"/"
element
=
{
<
Home
/>
}/>
</
Routes
>
</
BrowserRouter
>
); }
export
default
App
;