Skip to content

Commit

Permalink
Add missing ref option
Browse files Browse the repository at this point in the history
  • Loading branch information
nbudin committed May 24, 2021
1 parent a908b87 commit bdf8bde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ import { useBlocklyWorkspace } from 'react-blockly';
function MyBlocklyHookEmbed() {
const blocklyRef = useRef(null);
const { workspace, xml } = useBlocklyWorkspace({
ref: blocklyRef,
toolboxConfiguration: MY_TOOLBOX, // this must be a JSON toolbox definition
initialXml: xml,
});
Expand Down

0 comments on commit bdf8bde

Please sign in to comment.