Something went wrong. Try again.
☢ Make Your React App Truly Reactive!
Something went wrong. Try again.
312 B · 9 lines
JavaScript
at master
123456789const isObject = require('./isObject')
const checkInitialState = initialState => { if (!isObject(initialState)) throw new Error(`Invalid State "${initialState}" provided to useRS() hook, it must be either an object/array or a function that returns an object/array`)}
module.exports = { checkInitialState}