new line in react js 1

new line in react js

This should do it:


Hi~{"\n"}
this is a test message.

Here is what the above code is Doing:
1. The first line is a regular Text component.
2. The second line is a Text component with a newline character.
3. The third line is a Text component with a newline character and a string.
4. The fourth line is a Text component with a string.

Similar Posts