rax-use-once-effect
v1.0.0
Published
Rax useMounted hook
Downloads
3
Readme
rax-use-once-effect
Runs an effect only once.
Install
$ npm install rax-use-once-effect --save
Example
import { createElement } from 'rax';
import useOnceEffect from 'rax-use-once-effect';
export default function App() {
useOnceEffect(() => {
console.log('The effect only run once');
});
}