We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562562b commit 50be2c0Copy full SHA for 50be2c0
app/src/App.tsx
@@ -1,11 +1,13 @@
1
import { useState } from 'react'
2
import './App.css'
3
+import ProductRow from "./components/ProductRow/index"
4
5
function App() {
6
const [count, setCount] = useState(0)
7
8
return (
9
<>
10
+ <ProductRow item="rat food" price={6} />
11
</>
12
)
13
}
app/src/components/ProductRow/ProductRow.tsx
@@ -0,0 +1,13 @@
+interface Props {
+ item: string
+ price: number
+}
+
+export default function ProductRow(props: Props) {
+ return (
+ <div>
+ <span>{props.item}</span>
+ <span>${props.price}</span>
+ </div>
+ )
app/src/components/ProductRow/index.ts
@@ -0,0 +1 @@
+export { default } from "./ProductRow.tsx"
0 commit comments