UNPKG

react-keep-alive

Version:

Package will allow components to maintain their status, to avoid repeated re-rendering.

17 lines (16 loc) 449 B
export var warn = function () { return undefined; }; if (process.env.NODE_ENV !== 'production') { /** * Prints a warning in the console if it exists. * * @param {*} message */ warn = function (message) { if (typeof console !== undefined && typeof console.error === 'function') { console.error(message); } else { throw new Error(message); } }; }