Why is the customTextRenderer
return typed to Element
?
#1209
Brandon-Strong-Abbott
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was using the
customTextRenderer
prop to pass in a function that could inject images into the pdf mockup, and had to do some wonky casting to get to theElement
type from a string, as I was not wanting to return an element on lines where thetextItem.str
was already sufficient. Is there any better type suitable for the return on this function? MaybeReact.ReactNode
?Beta Was this translation helpful? Give feedback.
All reactions