rax-use-mounted-state
v1.0.1
Published
Rax useImport hook
Downloads
3
Readme
rax-use-mounted-state
Get component mount state.
Install
$ npm install rax-use-mounted-state --save
Example
import { createElement } from 'rax';
import useMountedState from 'rax-use-mounted-state';
export default function App() {
const isMounted = useMountedState();
useEffect(() => {
console.log('Mounted state is ', isMounted());
}, []);
}