interface myObj{ id: number, name: string, asset: string, unit: string, type: string, connectionString: string } type sensorsArr = myObj[] const Sensors: React.FC = () => { const [sensors, setSensors] = useState<sensorsArr>([])
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter