import { useState } from 'react' ; import { Boundary } from 'react-suspense-boundary' ; import Loading from '../Loading' ; import UserList from '../UserList' ; import HostInfo from '../HostInfo' ; export default function Multiple ( ) { const [ selectedHostId , setSelectedHostId ] = useState < string > ( ) ; return ( < Boundary pendingFallback = { < Loading / > } > < HostInfo selectedHostId = { selectedHostId } onHostChange = { setSelectedHostId } / > < UserList /> { } < /Boundary>); }