UNPKG

291 BJavaScriptView Raw
1import { useEffect } from 'react';
2import throwErrorInDev from '../helpers/throwErrorInDev';
3export default function useThrowErrorInDev(condition, msg) {
4 useEffect(() => {
5 throwErrorInDev(condition, msg);
6 }, [condition, msg]);
7}
8//# sourceMappingURL=useThrowErrorInDev.js.map
\No newline at end of file