'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var react = require('react');

/**
 * Reack hook
 */
var useIsMounted = function useIsMounted() {
  var ref = react.useRef(false);
  react.useEffect(function () {
    ref.current = true;
    return function () {
      ref.current = false;
    };
  }, []);
  return ref.current;
};

exports.useIsMounted = useIsMounted;
