Support the entire getProject config in theatric's initialize() function (#384)
Support the entire getProject config in initialize
This commit is contained in:
parent
aec79bd8c4
commit
8470b67d4b
2 changed files with 8 additions and 8 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue