Do you have any example with getting request from the server and rendering the content as a list of components? #203
Replies: 1 comment 3 replies
-
I don't think this is more difficult to implement with VanJS than React. Could you show me the code with React and maybe I can demonstrate the equivalent code with VanJS? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there.
I am getting list of Posts from my local server. To be honest something which is really easy to do in React in VanJs is quite tricky.
Lets say that I am getting : [ {name: "MM"}, {name: "NN"}] from server.
I would like to show "Loading" on the screen when the request is processed and then render those "Posts" (one after another_ with some HTML structures around. Can not figure it out.
Best,
MM
Beta Was this translation helpful? Give feedback.
All reactions