S
SolidJS•16mo ago
Sparrow

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
bigmistqke 🌈
bigmistqke 🌈•16mo ago
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.
bigmistqke 🌈
bigmistqke 🌈•16mo ago
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_resources
SolidJS
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
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View