UNPKG

@reservoir0x/relay-kit-ui

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

12 lines 366 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = require("react"); const useFallbackState = (defaultValue, state) => { const _state = (0, react_1.useState)(defaultValue); if (state) { return state; } return _state; }; exports.default = useFallbackState; //# sourceMappingURL=useFallbackState.js.map