Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-side fetching #28

Open
oliverjam opened this issue Mar 27, 2020 · 1 comment
Open

Client-side fetching #28

oliverjam opened this issue Mar 27, 2020 · 1 comment

Comments

@oliverjam
Copy link

https://github.com/fac19/week4-harl/blob/master/public/homepage.js

Your solution is good, and it works really well, so good job. I was wondering if you could think of a way to do everything on the server without having to load a blank page and then fetch posts using client-side JS?

Hint: remember we can create HTML strings on the server using template literals

`<h1>Hello ${name}</h1>`
@oliverjam
Copy link
Author

I feel like I wasn't complimentary enough here: it's really cool that you figured out how to serve JSON from your own server and request it from the client (since we never covered that in any workshops)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant