Pass data from Express up to Solid
I have already install and run
npm run build
, How can I pass data from express to solid just as how I would do it for EJS or Handlebars???3 Replies
fetch?
With express you can create different endpoints that you can make POST/GET/... requests to, like
localhost:8000/someEndPoint
. So the way how u call those endpoints with solid would be the same as you would use it anywhere else.there is
createResource
that makes it a bit easier to handle fetched data, and any other async state changes (where it takes a bit before you get the result). a tutorial how to use it: https://www.solidjs.com/tutorial/async_resourcesSolidJS
Solid is a purely reactive library. It was designed from the ground up with a reactive core. It's influenced by reactive principles developed by previous libraries.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View