UNPKG
template-maker
Version:
latest (1.0.1)
1.0.1
1.0.0
A CLI to generate project templates with alot of options!!
template-maker
/
templates
/
react
/
react-temp
/
src
/
components
/
main.js
17 lines
(14 loc)
•
339 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
React
from
'react'
import
{
BrowserRouter
,
Switch
,
Route
}
from
'react-router-dom'
const
Main
= (
) => {
return
(
<
BrowserRouter
>
<
Switch
>
<
Route
exact
path
=
'/'
>
<
h1
>
Hello World
</
h1
>
</
Route
>
</
Switch
>
</
BrowserRouter
>
) }
export
default
Main