use-constructor
v0.0.3
Published
react hook that behaves like a class constructor for functional components
Downloads
73
Maintainers
Readme
use-constructor
react hook that behaves like a class constructor for functional components
Please ★ this repo if you found it useful ★ ★ ★
Installation
npm install --save use-constructor
Usage
import React, { FC } from 'react';
import useConstructor from 'use-constructor';
const Component: FC = () => {
useConstructor(() => {
console.log('component will mount');
});
return <></>;
}
Support
Submit an issue
Screenshots
Contribute a screenshot
Contributing
Review the guidelines for contributing
License
Jam Risser © 2020
Changelog
Review the changelog
Credits
- Jam Risser - Author
Support on Liberapay
A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.
Add some fuel if you'd like to keep me going!