Open gabro opened 7 years ago
Project card
FormattedText uses children for the content, making it difficult and ambiguous to type.
Proposal: use a content or value prop so:
content
value
const content = 'foo \n bar'; // Before <FormattedText>{content}</FormattedText> // After <FormattedText content={content} />
Project card
requirements
FormattedText uses children for the content, making it difficult and ambiguous to type.
Proposal: use a
content
orvalue
prop so: