Making New Line in React and Json.
When I was coding React, I wanted to newline string. Firstly, I coded like below in Json.
I'm studying react and redux \n in order to sharpen up the skills.
I expected “\n” to be new line. However, it didn’t work. React is jsx not html, so it understands “\n”. In order to realize it, we have to use CSS.
We need this css.
And, “\n” should work!!