useOnMount

UseOnMountExample

src/prod/reactplus/useOnMount.ts

import React from 'react';



export const useOnMount = (callback: any) => {
	React.useEffect(() => {
		callback();
	}, []);

	return 0;
};

dist/prod/reactplus/useOnMount.js

import React from 'react';
export const useOnMount = (callback) => {
    React.useEffect(() => {
        callback();
    }, []);
    return 0;
};

src/prod/reactplus/useOnMount.ts

import React from 'react';



export const useOnMount = (callback: any) => {
	React.useEffect(() => {
		callback();
	}, []);

	return 0;
};