blocks-template icon indicating copy to clipboard operation
blocks-template copied to clipboard

Will you support web components instead of JSX?

Open scherler opened this issue 2 years ago • 1 comments

=> JSX.Element;

I am surprised to find the requisition is to use REACT I would rather see that you export to standard HTMLElement like web components are.

Do you plan to support the standard or is react given? ...wc would allow us to use it in any given js framework not only react.

scherler avatar Nov 18 '22 09:11 scherler

hi, thanks for getting in touch!

The Blocks app uses React, but it communicates with individual blocks using iframes and message passing, so there is no inherent reason that Blocks must be written with React. At the moment only React is supported in this template, but we're working right now on generalizing it to other frameworks or just plain JavaScript.

jaked avatar Nov 18 '22 23:11 jaked