const SuperText = () => (
<Text>
my super text
</Text>
)
So reselector will add data-hash to the root component Text, and if it doesn't pass rest props to the DOM node, it will be applied only the one data-hash, generated just for the Text.
And for now you can find SuperText only by select`.smth ${Text}`.
The solution is to use Text's data-hash for the root node, and we can use select`.smth ${SuperText}` then
Let's say we've got Component like
So
reselector
will adddata-hash
to the root componentText
, and if it doesn't pass rest props to the DOM node, it will be applied only the onedata-hash
, generated just for theText
.And for now you can find
SuperText
only byselect`.smth ${Text}`
.The solution is to use
Text
'sdata-hash
for the root node, and we can useselect`.smth ${SuperText}`
then