react-registry icon indicating copy to clipboard operation
react-registry copied to clipboard

[Questions] Why are some things like this

Open theodorDiaconu opened this issue 7 years ago • 3 comments

<Registered id="title" text="Hello Registry">
                    <div>A child</div>
                </Registered>

Why didn't you go on the approach like:

const { Title } = registry.get('Title');
<Title>...kids...</Title>

I'm just curious because I am now exploring the concepts of component registries in React and maybe you've learned from some mistakes :D

Cheers! Great PACKAGE!

theodorDiaconu avatar Jun 04 '18 14:06 theodorDiaconu

Question 2

static getId() {
    return "myId";
}

Why aren't we relying on displayName and sort of create a standard to only use unique names in the code-base ?

theodorDiaconu avatar Jun 04 '18 14:06 theodorDiaconu

Question 3

https://www.devnet.io/libs/react-registry/docs/#/retrieving?id=with-custom-conditions-1

Just curious, how did you end-up with this feature, what use-case did it solve for you ? Can't think of one that's why I'm asking.

theodorDiaconu avatar Jun 04 '18 14:06 theodorDiaconu

+1

thierry2015 avatar Jul 12 '19 12:07 thierry2015