Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Add a way to extend/modify props & options of an existent component #37

Open
kizu opened this issue Mar 30, 2018 · 1 comment
Open

Add a way to extend/modify props & options of an existent component #37

kizu opened this issue Mar 30, 2018 · 1 comment

Comments

@kizu
Copy link
Member

kizu commented Mar 30, 2018

Similar to .extend and .withComponent for styled-components, but in a way it would be possible to redefine just everything, returning a new component based on original params merged with the new ones.

@kizu
Copy link
Member Author

kizu commented Mar 30, 2018

Desired API:

const NewButton = bemto(Button, {/* overrides */});

If the Button would provide some way for bemto() to know how it was created, we can re-use what was there instead of wrapping it in a new component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant