prismicio / prismic-react

React components and hooks to fetch and present Prismic content
https://prismic.io/docs/technologies/homepage-reactjs
Apache License 2.0
154 stars 40 forks source link

fix: automatically assign keys to custom `<PrismicRichText>` components #118

Closed angeloashmore closed 2 years ago

angeloashmore commented 2 years ago

Types of changes

Description

This PR automatically applies keys to custom components provided to <PrismicRichText>. Without the PR, React logs an error about missing keys if the a key prop is not explicitly given to each component.

More details: #114

Checklist:

🐺

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
dist/index.mjs 4.08 KB (+0.97% 🔺)
dist/index.cjs 5.63 KB (+0.65% 🔺)