Which package?
react-intl
Is your feature request related to a problem? Please describe.
I regularly end up writing the exact same lines of code
b: (...chunks) => <b>{chunks}</b>,
p: (...chunks) => <p>{chunks}</p>,
Describe the solution you'd like
I'd like to see an abstraction on top of formatMessage (or built in) that takes care of a standard set of html tags.
It might be make sense automatically convert tags to functions like the ones I listed above and then allow those to be overridden using the current interface.
Which package?
react-intl
Is your feature request related to a problem? Please describe.
I regularly end up writing the exact same lines of code
Describe the solution you'd like
I'd like to see an abstraction on top of
formatMessage(or built in) that takes care of a standard set of html tags.It might be make sense automatically convert tags to functions like the ones I listed above and then allow those to be overridden using the current interface.