How to have have four or five consecutive non-breaking spaces in HTML using jsx and React. I try
`asdf${' '}`
but it only renders one space. How do I do this in React?
How to have have four or five consecutive non-breaking spaces in HTML using jsx and React. I try
`asdf${' '}`
but it only renders one space. How do I do this in React?
You can use CSS white-space property for it
<div style = {{ whiteSpace: "pre" }}>{`asdf${' '}`}</div>
Let me know if it works.