File tree Expand file tree Collapse file tree 4 files changed +702
-27
lines changed Expand file tree Collapse file tree 4 files changed +702
-27
lines changed Original file line number Diff line number Diff line change 1010 "@types/node" : " ^12.0.0" ,
1111 "@types/react" : " ^16.9.0" ,
1212 "@types/react-dom" : " ^16.9.0" ,
13+ "lodash" : " ^4.17.15" ,
1314 "react" : " ^16.12.0" ,
1415 "react-dom" : " ^16.12.0" ,
16+ "react-feather" : " ^2.0.3" ,
17+ "react-popper" : " ^1.3.7" ,
1518 "react-scripts" : " 3.3.0" ,
19+ "tailwindcss" : " ^1.1.4" ,
1620 "typescript" : " ~3.7.2"
1721 },
1822 "scripts" : {
3539 " last 1 firefox version" ,
3640 " last 1 safari version"
3741 ]
42+ },
43+ "devDependencies" : {
44+ "@types/lodash" : " ^4.14.149"
3845 }
3946}
Original file line number Diff line number Diff line change 1- import React from ' react' ;
2- import logo from './logo.svg' ;
3- import './App.css' ;
1+ import React , { useState } from " react" ;
2+ import "../node_modules/tailwindcss/dist/tailwind.css" ;
3+ import { DatePicker } from "./Datepicker" ;
44
55const App : React . FC = ( ) => {
6+ const [ date , setDate ] = useState ( new Date ( ) ) ;
67 return (
7- < div className = "App" >
8- < header className = "App-header" >
9- < img src = { logo } className = "App-logo" alt = "logo" />
10- < p >
11- Edit < code > src/App.tsx</ code > and save to reload.
12- </ p >
13- < a
14- className = "App-link"
15- href = "https://reactjs.org"
16- target = "_blank"
17- rel = "noopener noreferrer"
18- >
19- Learn React
20- </ a >
21- </ header >
8+ < div className = "max-w-xs mt-12 mx-auto" >
9+ < DatePicker date = { date } onChange = { setDate } > </ DatePicker >
2210 </ div >
2311 ) ;
24- }
12+ } ;
2513
2614export default App ;
You can’t perform that action at this time.
0 commit comments