react-br

The `nl2br` function is a utility that converts newline characters in a string to `<br />` elements, suitable for rendering in React applications. This function can handle both strings and other types of inputs, returning the input unchanged if it is not

Browse on unpkg