Skip to content

Commit 058364c

Browse files
committed
docs: changelog / readme
1 parent 815d3bd commit 058364c

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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)

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-Present Sushant
3+
Copyright (c) 2022-Present Sushant Dhiman
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,27 @@ npm i --save react-samay
2727

2828
```js
2929
import { TimePicker } from 'react-samay';
30-
import ReactDOM from 'react-dom';
30+
import { createRoot } from 'react-dom/client';
3131

3232
// import css file
3333
import '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

0 commit comments

Comments
 (0)