Skip to content

Commit 0cb0151

Browse files
committed
Update README.md 📚
1 parent bb94aa5 commit 0cb0151

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# React Tailwindcss Datepicker
22

3-
<p style="text-align: center">
3+
<p align="center">
44
<a href="https://react-tailwindcss-datepicker.vercel.app/" target="_blank">
55
<img alt="React Tailwindcss Datepicker" width="100" style="border-radius: 100%;" src="https://raw.githubusercontent.com/onesine/react-tailwindcss-datepicker/master/assets/img/calendar_logo.svg?raw=true">
66
</a><br><br>
77
A modern date range picker component for React using Tailwind 3 and dayjs. Alternative to Litepie Datepicker which uses Vuejs.
88
</p>
99

10-
<div style="text-align: center">
10+
<div align="center">
1111

1212
[![npm version](https://img.shields.io/npm/v/react-tailwindcss-datepicker?style=flat-square)](https://www.npmjs.com/package/react-tailwindcss-datepicker)
1313
[![npm downloads](https://img.shields.io/npm/dt/react-tailwindcss-datepicker?style=flat-square)](https://www.npmjs.com/package/react-tailwindcss-datepicker)
@@ -99,12 +99,7 @@ const App = () => {
9999

100100
return (
101101
<div>
102-
<Datepicker
103-
value={value}
104-
onChange={newValue => {
105-
setValue(newValue);
106-
}}
107-
/>
102+
<Datepicker value={value} onChange={newValue => setValue(newValue)} />
108103
</div>
109104
);
110105
};

0 commit comments

Comments
 (0)