diff --git a/src/App.tsx b/src/App.tsx index 3ee93f5..eaa6df3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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' @@ -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
{state}
; -} \ No newline at end of file +export default App \ No newline at end of file