Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit afa4b17

Browse files
committed
CHANGELOG v3.0.0
1 parent 94bd0ad commit afa4b17

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [3.0.0] - 2019-02-13
8+
9+
### Changed
10+
* sets a new peer dependency to be at least React 16.8
11+
* converts component to functional component and uses the [`useCallback`
12+
hook](https://reactjs.org/docs/hooks-reference.html#usecallback) for the
13+
`handleKeyDown` event memoization
14+
* wraps the component and forwarded ref higher-order component in
15+
[`React.memo`](https://reactjs.org/docs/react-api.html#reactmemo)
16+
* updates example to use [`useState`](https://reactjs.org/docs/hooks-reference.html#usestate)
17+
and [`useCallback`](https://reactjs.org/docs/hooks-reference.html#usecallback)
18+
to toggle the button states (text and background color, where applicable)
19+
* rewrites the tests in
20+
[`react-testing-library`](https://github.com/kentcdodds/react-testing-library)
21+
to focus less on internals and more on what an end-user might see (and really
22+
to try it out, too)
23+
724
## [2.0.0] - 2018-12-29
825

926
### Changed

0 commit comments

Comments
 (0)