useOnUpdate

UseOnUpdateExample

src/prod/reactplus/useOnUpdate.ts

import React from 'react';



export const useOnUpdate = (callback: any) => {
	React.useEffect(() => {
		callback();
	});

	return 0;
};

dist/prod/reactplus/useOnUpdate.js

import React from 'react';
export const useOnUpdate = (callback) => {
    React.useEffect(() => {
        callback();
    });
    return 0;
};

src/prod/reactplus/useOnUpdate.ts

import React from 'react';



export const useOnUpdate = (callback: any) => {
	React.useEffect(() => {
		callback();
	});

	return 0;
};