1.0.0 • Published 11 months ago

react-strictify v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

React-Strictify

npm version NPM License NPM Downloads

A collection of strict utilities for React to enforce best practices and improve code quality.

Installation

You can install this package using npm:

npm i react-strictify

API

useStrictContext(Context) - strict version of useContext that throw an error in case of context provider value equals null or undefined.

Parameters:

Context - React Context created with createStrictContext.

Returns: Context.Provider value.

Contributing

Contributions are welcome!

Please open an issue or submit a pull request.

License

MIT

1.0.0

11 months ago