27 lines
468 B
TypeScript
Raw Normal View History

2023-06-28 08:25:17 +00:00
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,
2023-06-29 11:06:58 +00:00
id: 1,
nested: {
data: {
is: {
fun: "Isn't it?"
}
}
}
2023-06-28 08:25:17 +00:00
}
const [demoThing, setDemoThing] = React.useState(thing)
return <Thingtime thing={demoThing}></Thingtime>
}