How to async await in react render function?
I need to display JSX that depends on data from a network request. In my first attempt, the return statement was hit before the network request resolved const showSubscriptions = () => { const [methods, setMethods] = useState([]); let subscriptionsRef = React.useRef({}) useEffect(() => { const getCommunicatorMethods = async () => { const { data