Skip to content

Commit 48f97bf

Browse files
committed
Bismillah
1 parent 9add170 commit 48f97bf

File tree

4 files changed

+702
-27
lines changed

4 files changed

+702
-27
lines changed

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
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": {
@@ -35,5 +39,8 @@
3539
"last 1 firefox version",
3640
"last 1 safari version"
3741
]
42+
},
43+
"devDependencies": {
44+
"@types/lodash": "^4.14.149"
3845
}
3946
}

src/App.tsx

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
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

55
const 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

2614
export default App;

0 commit comments

Comments
 (0)