Skip to content

Create pluggable component factory #79

@streamich

Description

@streamich

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) => {}}
    }
  ]}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions