Skip to content
Merged
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
11 changes: 2 additions & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react'
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
Expand Down Expand Up @@ -34,11 +34,4 @@ function App() {
)
}

export default App

function ExampleComponent() {
if (true) {
const [state, setState] = React.useState(0); // This breaks the rules of hooks
}
return <div>{state}</div>;
}
export default App
Loading