20 lines
374 B
TypeScript
20 lines
374 B
TypeScript
|
import React from "react"
|
||
|
import { Thingtime } from "./Thingtime"
|
||
|
|
||
|
export const ThingtimeDemo = props => {
|
||
|
|
||
|
const thing = {
|
||
|
name: 'thing',
|
||
|
description: 'thing description',
|
||
|
image: 'thing image',
|
||
|
price: 100,
|
||
|
quantity: 1,
|
||
|
id: 1
|
||
|
}
|
||
|
|
||
|
const [demoThing, setDemoThing] = React.useState(thing)
|
||
|
|
||
|
|
||
|
return <Thingtime thing={demoThing}></Thingtime>
|
||
|
|
||
|
}
|