Skip to content

Update App.jsx #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions Video 110/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'

function App() {
Expand Down Expand Up @@ -34,15 +32,6 @@ function App() {

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
{showbtn ? <button>showbtn is true</button> : <button>showbtn is false</button>}
{/* {showbtn && <button>showbtn is true</button>} */}

Expand All @@ -54,17 +43,10 @@ function App() {
<div className="todo">{todo.desc}</div>
</div>
})}
<div className="card">

<button onClick={() => setshowbtn(!showbtn)}>
Toggle showbtn
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
}
Expand Down