NextJS: React does not recognize the dataTw
prop
#174
-
I am using twin.macro on my NextJS app with emotion. I keep getting this error on my console. It is because of the data-tw prop that is passed for debugging. Does this warning represent something wrong I might have done during setup? Is there an underlying issue because of this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's interesting - I haven't seen that error before, perhaps it's a server rendering issue? You can turn off the debugProp: false |
Beta Was this translation helpful? Give feedback.
That's interesting - I haven't seen that error before, perhaps it's a server rendering issue?
Twin adds the prop as kebab case.
You can turn off the
data-tw
prop feature in your twin config withdebugProp
:debugProp: false