A question about how the "
"
and " 
" work together in the placeholder attribute. Here is my code:
render() {
return(
<div>{
if this.state.showTextarea?
<div>
<form>
<textarea placeholder='ex: {"data":{  "name":"petter" } }'> </textarea>
</form>
</div>
: null
}
</div>
);
}
It works very well if running on the code snippet, but it doesn't work in the browser(chrome and Edge). Any idea?
It's not part of the standard. You can do it with Javascript. https://github.com/bradjasper/jQuery-Placeholder-Newlines