Closed dayhaysoos closed 2 years ago
The updates are looking good! I added a comment above about the in-code documentation with a lengthy example.
Question: Does the defaultComponentSerializer need to have comments on it, since it's not really something users would be calling directly?
Question: Does the defaultComponentSerializer need to have comments on it, since it's not really something users would be calling directly?
It doesn't need to be deeply documented since it is an internal function. It would still be good to document what it's doing for future developers to understand its purpose.
Personally, I would just add a sentence or two describing what it's doing (using default HTML elements for block types) and what it's for (the fallback serializer if one is not provided).
Types of changes
Description
PrismicRichText is an essential tool for using Prismic. This PR is a React version of that implementation.
Checklist: