S
SolidJS13mo ago
Kyros

How to use async functions inside of synchronous components?

I tried await for a fetch inside my App component, but it went all wazoo and said promise is not valid JSX... I mean ofc but what do i do?
3 Replies
Je Suis Un Ami
Je Suis Un Ami13mo ago
Use createResource()
Kyros
KyrosOP13mo ago
ok thanks guys it did it
Want results from more Discord servers?
Add your server