Skip to content

Commit

Permalink
fix(react): swapped fragments with <div> so avoid lint warnings for d…
Browse files Browse the repository at this point in the history
…efault app
  • Loading branch information
jaysoo committed Apr 20, 2023
1 parent 0a6d376 commit 3a9fec9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import styles from './app.module.css';
export function App() {
return (
<>
<div>
<h1>
<span> Hello there, </span>
Welcome plain 👋
</h1>
</>
</div>
);
}
Expand Down Expand Up @@ -49,9 +49,9 @@ import NxWelcome from './nx-welcome';
export function App() {
return (
<>
<div>
<NxWelcome title="my-app" />
</>
</div>
);
}
Expand All @@ -67,9 +67,9 @@ import NxWelcome from './nx-welcome';
export function App() {
return (
<>
<div>
<NxWelcome title="my-dir-my-app" />
</>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class App extends Component {
export function App() {
<% } %>
return (
<>
<div>
<% if (!minimal) { %>
<NxWelcome title="<%= projectName %>"/>
<% } else { %>
Expand All @@ -23,7 +23,7 @@ export function App() {
Welcome <%= projectName %> 👋
</h1>
<% } %>
</>);
</div>);
<% if (classComponent) { %>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class App extends Component {
export function App() {
<% } %>
return (
<>
<div>
<% if (!minimal) { %>
<NxWelcome title="<%= projectName %>"/>
<% } else { %>
Expand All @@ -22,7 +22,7 @@ export function App() {
Welcome <%= projectName %> 👋
</h1>
<% } %>
</>);
</div>);
<% if (classComponent) { %>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class App extends Component {
export function App() {
<% } %>
return (
<>
<div>
<% if (!minimal) { %>
<NxWelcome title="<%= projectName %>"/>
<% } else { %>
Expand All @@ -21,7 +21,7 @@ export function App() {
Welcome <%= projectName %> 👋
</h1>
<% } %>
</>);
</div>);
<% if (classComponent) { %>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export class App extends Component {
export function App() {
<% } %>
return (
<>
<div>
<style jsx>{`/** your style here **/`}</style>
</>
</div>
);

<% if (classComponent) { %>
Expand All @@ -26,4 +26,4 @@ export function App() {

export default App;

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

0 comments on commit 3a9fec9

Please sign in to comment.