Hi all!
Well i have never used REACT before and now i am wondering why my VS Code is autoformatting me the code. I have the following issue.
This is the code i have in the editor at the moment.
React.createElement(
"div",
{id: "hello"},
React.createElment(
"p",
null,
"Lorem, ipsum."
)
);
But the autoformat “feature” correct it in that way:
Also nice, but for my understanding and for my learning it would help me a lot when
it is not formatted in a one liner.
React.createElement( "div", {id: "hello"}, React.createElment( "p", null, "Lorem, ipsum." ) );
Small node. This is only happening when i am using React in an html File. Yes i am using Prettier as code formatter. But this works perfect for CSS; JS ; and Html. Any ideas for a quick fix ?
Cheers Mchoeti