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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions