I am using react. I want to add a line break <br>
between strings
No results and Please try another search term. .
I have tried No results.<br>Please try another search term.
but it does not work, I need to add the <br>
in the html.
Any ideas how to solve it?
render() {
let data = this.props.data;
let isLoading = this.props.isLoading;
let isDataEmpty = Object.entries(data).length === 0;
let movieList = isLoading ? <Loader /> : isDataEmpty ? No results. Please try another search term. :
Object.entries(data).map((movie, index) => <MovieTile key={index} {...movie[1]} />);
return (
<div className= movieList >{movieList}</div>
);
}