File tree Expand file tree Collapse file tree
components/partials/Home/Counter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " viterts" ,
33 "private" : true ,
4- "version" : " 0.2.0 " ,
4+ "version" : " 0.2.1 " ,
55 "scripts" : {
66 "dev" : " vite" ,
77 "build" : " tsc && vite build" ,
Original file line number Diff line number Diff line change @@ -4,20 +4,18 @@ import Router from './routes';
44import './styles/vendors.scss' ;
55
66const App = ( ) => (
7- < div className = "App" >
8- < main >
9- < p > App Works!</ p >
10- < ul >
11- < li >
12- < Link to = "/" > Home</ Link >
13- </ li >
14- < li >
15- < Link to = "/about" > About</ Link >
16- </ li >
17- </ ul >
18- < Router />
19- </ main >
20- </ div >
7+ < main >
8+ < p > App Works!</ p >
9+ < ul >
10+ < li >
11+ < Link to = "/" > Home</ Link >
12+ </ li >
13+ < li >
14+ < Link to = "/about" > About</ Link >
15+ </ li >
16+ </ ul >
17+ < Router />
18+ </ main >
2119) ;
2220
2321export default App ;
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ const Counter = () => {
1515
1616 return (
1717 < div >
18- < InputNumber value = { count } onChange = { ( value : number ) => dispatch ( setAmount ( value ) ) } />
18+ < InputNumber
19+ value = { count }
20+ onChange = { ( value : number | null ) => dispatch ( setAmount ( value || 0 ) ) }
21+ />
1922 < Button onClick = { ( ) => dispatch ( incrementAsync ( 1 ) ) } > Add Async</ Button >
2023 < Button onClick = { ( ) => dispatch ( incrementIfOdd ( 1 ) ) } > Add If Odd</ Button >
2124 </ div >
Original file line number Diff line number Diff line change 1+ @import ' antd/dist/reset.css' ;
12@import ' bootstrap/dist/css/bootstrap-reboot.css' ;
23@import ' bootstrap/dist/css/bootstrap-grid.css' ;
3-
4- @import ' antd/dist/antd.css' ;
You can’t perform that action at this time.
0 commit comments