I have an object called configs and I am trying to store it in a state var called stateConfig,
const [stateConfig, setStateConfig] = useState(configs)