This repository was archived by the owner on Feb 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Original file line number Diff line number Diff line change
1
+ import Router from 'preact-router'
2
+ import Login from './login'
1
3
import 'promise-polyfill/src/polyfill'
2
4
import 'unfetch/polyfill/index'
3
5
import 'regenerator-runtime/runtime'
4
6
import { Component } from 'preact'
5
- import withStyles from './jss'
6
7
7
- export default withStyles ( {
8
- root : {
9
- color : 'red'
10
- }
11
- } , class App extends Component {
12
- render ( { classes } ) {
8
+ export default class App extends Component {
9
+ render ( ) {
13
10
return (
14
- < h1 class = { classes . root } > test</ h1 >
11
+ < Router >
12
+ < Login path = '/login' />
13
+ </ Router >
15
14
)
16
15
}
17
- } )
16
+ }
Original file line number Diff line number Diff line change
1
+ import { Component } from 'preact'
2
+ import withStyles from './jss'
3
+
4
+ export default withStyles ( {
5
+ root : {
6
+ color : 'red'
7
+ }
8
+ } , class App extends Component {
9
+ render ( { classes } ) {
10
+ return (
11
+ < h1 class = { classes . root } > Login</ h1 >
12
+ )
13
+ }
14
+ } )
Original file line number Diff line number Diff line change 39
39
"nyc" : " ^15.0.0" ,
40
40
"preact" : " ^10.3.1" ,
41
41
"preact-cli" : " ^2.2.1" ,
42
+ "preact-router" : " ^3.2.1" ,
42
43
"promise-polyfill" : " ^8.1.3" ,
43
44
"regenerator-runtime" : " ^0.13.3" ,
44
45
"standard" : " ^14.3.1" ,
Original file line number Diff line number Diff line change @@ -6605,6 +6605,11 @@ preact-router@^2.5.2:
6605
6605
version "2.6.1"
6606
6606
resolved "https://registry.yarnpkg.com/preact-router/-/preact-router-2.6.1.tgz#eec60a9f2c07a1ae4fbc6604d8a0415742fbbd89"
6607
6607
6608
+ preact-router@^3.2.1 :
6609
+ version "3.2.1"
6610
+ resolved "https://registry.yarnpkg.com/preact-router/-/preact-router-3.2.1.tgz#c7d12d8fc7a60bfbe5cadf23a234551bec783468"
6611
+ integrity sha512-KEN2VN1DxUlTwzW5IFkF13YIA2OdQ2OvgJTkQREF+AA2NrHRLaGbB68EjS4IeZOa1shvQ1FvEm3bSLta4sXBhg==
6612
+
6608
6613
preact-transition-group@^1.1.1 :
6609
6614
version "1.1.1"
6610
6615
resolved "https://registry.yarnpkg.com/preact-transition-group/-/preact-transition-group-1.1.1.tgz#f0a49327ea515ece34ea2be864c4a7d29e5d6e10"
You can’t perform that action at this time.
0 commit comments