Support the entire getProject config in theatric's initialize() function (#384)

Support the entire getProject config in initialize
This commit is contained in:
Andrew Prifer 2023-01-22 22:59:29 +01:00 committed by GitHub
parent aec79bd8c4
commit 8470b67d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@ import {render} from 'react-dom'
import React, {useState} from 'react'
import state from './state.json'
initialize(state)
initialize({state})
function SomeComponent({id}: {id: string}) {
const {foo, $get, $set} = useControls(