rax-use-mounted
v1.0.0
Published
Rax useMounted hook
Downloads
6
Readme
rax-use-mounted
Calls a function after the component is mounted.
Install
$ npm install rax-use-mounted --save
Example
import { createElement } from 'rax';
import useMounted from 'rax-use-mounted';
export default function App() {
useMounted(() => {
console.log('App has been mounted.');
});
}