Preserving line breaks from an API string response when rendered in your React component
If you’ve ever worked with an API that returns a string containing line break characters and wrongly assumed they would be preserved by default when you render the text in your React component, then you’re not alone. I assumed the characters would be...
tomelleyz.hashnode.dev2 min read