Getting either " key
is not a prop" or Each child in a list should have a unique "key" prop.
#171
Unanswered
florianbepunkt
asked this question in
Q&A
Replies: 2 comments 5 replies
-
That warning can be safely ignored. (we even have code to disable logging that, which is weird you're seeing it.) keys are only important with reactive models, and since email isn't reactive, keys aren't needed |
Beta Was this translation helpful? Give feedback.
5 replies
-
OK so it's not in the jsx-email package, but rather the preview app: jsx-email/apps/preview/app/src/main.tsx Line 23 in afd9ca8 Alternatively, if you can identify which portions of the jsx-email components need keys, I can try and get something added into the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm confused.
In my template I'm rendering a list like this:
However this gives me the error "
key
is not a prop" in production, while omitting it gives me the error "Each child in a list should have a unique "key" prop". I think the above is valid React code.Any ideas how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions