diff --git a/src/App.tsx b/src/App.tsx index 3d7ded3..8c25841 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,33 +1,12 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from '/vite.svg' import './App.css' +import Background from './components/background' function App() { - const [count, setCount] = useState(0) - return ( <> -
- - Vite logo - - - React logo - -
-

Vite + React

-
- -

- Edit src/App.tsx and save to test HMR -

-
-

- Click on the Vite and React logos to learn more -

+ +
+
) } diff --git a/src/components/background.tsx b/src/components/background.tsx new file mode 100644 index 0000000..9b20d0a --- /dev/null +++ b/src/components/background.tsx @@ -0,0 +1,27 @@ +import React from "react" + +const Background: React.FC<{children: React.ReactNode }> = ({ children }) => { + return ( +
+
+ {Array.from({ length: 20}).map((_, row) => ( +
+ {Array.from({ length: 10}).map((_, col) => ( +
+
+ ))} +
+ ))} + +
+
{children}
+
+ ) +} + +export default Background \ No newline at end of file