--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/GakDk2F9_aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Stefan, nice to meet you, and glad to see others are also thinking about how to integrate Blockly and React!We do use a good number of custom blocks in our app. This is fairly easy to do with the component I released, since it allows customizing the toolbox - just add whatever block configurations you want to make available.I see that in your component you do some of the global Blockly configuration from the component itself. We've avoided doing this, and instead do it separately from a different JS file, which is where we register our custom blocks as well. Having it separate allows us to have multiple Blockly instances on the same page (which we switch between using tabs).
Nat
Hi Nat,--
I'm glad that somebody is working on this! :) I've been working on a simpler component myself, feel free to look at https://github.com/melbings/ariadne/blob/master/src/app/js/Components/BlocklyComponent.js for further inspiration.
Have you been thinking about how custom blocks would be defined and integrated into your Blockly component?
Best,
Stefan
On Thursday, 24 December 2015 18:00:34 UTC+1, Nat Budin wrote:Hi everyone, and happy holidays!I work at PatientsLikeMe, and we've started to use Blockly for some internal administration tools that allow site admins to build custom business logic. We'll be releasing some reusable components that result from this work, and this is the first of them.react-blockly-component is a React.js component that embeds a Blockly editor, with full control over its toolbox through props. This means the editor can be embedded by another React component, which may set the content of the editor's toolbox dynamically based on its own logic. Blockly will be notified automatically.The component is released under the MIT license and can be found at: https://github.com/patientslikeme/react-blockly-componentI'd welcome feedback, suggestions, or questions about this component. Thanks!
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/GakDk2F9_aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blo...@googlegroups.com.