libreact
libreact copied to clipboard
Create pluggable component factory
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) => {}}
}
]}
/>