File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## next
4+
5+ - refactor: use react-hooks
6+ - breaking: support only ` react>=18 `
7+
38## 3.0.0
49
510- bundle: use rollup (with terser ecma:2022)
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2022-Present Sushant
3+ Copyright (c) 2022-Present Sushant Dhiman
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -27,23 +27,27 @@ npm i --save react-samay
2727
2828``` js
2929import { TimePicker } from ' react-samay' ;
30- import ReactDOM from ' react-dom' ;
30+ import { createRoot } from ' react-dom/client ' ;
3131
3232// import css file
3333import ' react-samay/index.css' ;
3434
35- ReactDOM .render (
35+ const container = document .getElementById (' app' );
36+ const root = createRoot (container);
37+
38+ root .render (
3639 < TimePicker
3740 value= {new Date ()}
3841 onChange= {(date ) => {
3942 console .log (date);
4043 }}
41- / > ,
42- < div id= " app" / > ,
44+ / >
4345);
4446```
4547
46- You can find more storybook examples [ here] ( https://sushantdhiman.com/projects/react-samay ) .
48+ ## Storybook Examples
49+
50+ You can find storybook examples [ here] ( https://sushantdhiman.com/projects/react-samay ) .
4751
4852## API
4953
You can’t perform that action at this time.
0 commit comments