Create pluggable component factory
Opened this issue · 0 comments
streamich commented
Create a factory that allows to easily create components that support plugins, just like Slate.
const Something = supportPlugins(SomethingWithoutPlugins);
<Something
onSomeEvent={() => {}}
renderSomething={(data) => {}}
plugins={[
{
onSomeEvent={() => {}}
renderSomething={(data) => {}}
}
]}
/>