Releases: berbaquero/react-hide-show-utils
Typing support for React 18
Types are updated for proper React 18 support — thanks, @utkuturna!
Also, bunch of security-related dependency updates.
New Contributors
- @utkuturna made their first contribution in #28
Full Changelog: v1.2.0...v1.3.0
Safe lifecycle methods
No longer uses componentWillMount
internally.
Rewritten in TypeScript
The whole source code is now written in TypeScript, and the generated JS files are targeted to ES6*.
The functionality is exactly the same as before.
*If you need to target browsers that only support ES5 or earlier, you need to explicitly transpile the files in your node_modules/react-hide-show-utils
.
Simple server-side support
Any children declared inside the components will simple render to null
on Node. Basically, the components won't break on the server anymore.
On the client, everything works exactly like before.
Added `<ShowAt>` component
Finally both <HideAt>
and <ShowAt>
components are available.
Also, added notes and clarifications about its usage and limitations.