Skip to content

Commit

Permalink
chore(create-app): add type="button" to satisfy eslint rule (#3685)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXmeijin authored Jun 6, 2021
1 parent 6b4c355 commit 32c596c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/create-app/template-react-ts/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function App() {
<img src={logo} className="App-logo" alt="logo" />
<p>Hello Vite + React!</p>
<p>
<button onClick={() => setCount((count) => count + 1)}>
<button type="button" onClick={() => setCount((count) => count + 1)}>
count is: {count}
</button>
</p>
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/template-react/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function App() {
<img src={logo} className="App-logo" alt="logo" />
<p>Hello Vite + React!</p>
<p>
<button onClick={() => setCount((count) => count + 1)}>
<button type="button" onClick={() => setCount((count) => count + 1)}>
count is: {count}
</button>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<a href="https://v3.vuejs.org/" target="_blank">Vue 3 Docs</a>
</p>

<button @click="count++">count is: {{ count }}</button>
<button type="button" @click="count++">count is: {{ count }}</button>
<p>
Edit
<code>components/HelloWorld.vue</code> to test hot module replacement.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<a href="https://v3.vuejs.org/" target="_blank">Vue 3 Documentation</a>
</p>

<button @click="state.count++">count is: {{ state.count }}</button>
<button type="button" @click="state.count++">count is: {{ state.count }}</button>
<p>
Edit
<code>components/HelloWorld.vue</code> to test hot module replacement.
Expand Down

0 comments on commit 32c596c

Please sign in to comment.