react-registry
react-registry copied to clipboard
[Questions] Why are some things like this
<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!
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 ?
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.
+1