Skip to content

Commit

Permalink
feat(react): remove empty <div /> from generated app (#16439)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Apr 20, 2023
1 parent 5e0893a commit 9163960
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export function App() {
<span> Hello there, </span>
Welcome plain 👋
</h1>
<div />
</>
);
}
Expand Down Expand Up @@ -53,8 +51,6 @@ export function App() {
return (
<>
<NxWelcome title="my-app" />
<div />
</>
);
}
Expand All @@ -73,8 +69,6 @@ export function App() {
return (
<>
<NxWelcome title="my-dir-my-app" />
<div />
</>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export function App() {
Welcome <%= projectName %> 👋
</h1>
<% } %>
<div />
</>);
<% if (classComponent) { %>
}
Expand All @@ -34,4 +33,4 @@ export function App() {

export default App;

<% if (inSourceTests === true) { %> <%- inSourceVitestTests %> <% } %>
<% if (inSourceTests === true) { %> <%- inSourceVitestTests %> <% } %>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export function App() {
Welcome <%= projectName %> 👋
</h1>
<% } %>
<div />
</>);
<% if (classComponent) { %>
}
Expand All @@ -33,4 +32,4 @@ export function App() {

export default App;

<% if (inSourceTests === true) { %> <%- inSourceVitestTests %> <% } %>
<% if (inSourceTests === true) { %> <%- inSourceVitestTests %> <% } %>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function App() {
Welcome <%= projectName %> 👋
</h1>
<% } %>
<div />
</>);
<% if (classComponent) { %>
}
Expand All @@ -32,4 +31,4 @@ export function App() {

export default App;

<% if (inSourceTests === true) { %> <%- inSourceVitestTests %> <% } %>
<% if (inSourceTests === true) { %> <%- inSourceVitestTests %> <% } %>

0 comments on commit 9163960

Please sign in to comment.