Fetching data using NextJS, TypeScript, and Bun JS (fast all-in-one JavaScript runtime)
Eric David Smith
In this video, I will show you how to get started using NextJS, Bun.sh, and TypeScript to speed up your developer experience. Together, we'll build a simple web app that fetches data from a public API and consumes the data inside dynamic routes using NextJS - this is basic, but it should help you get started using Bun.
Resources:
- API - https://jsonplaceholder.typicode.com
- Bun.sh - https://bun.sh
- NextJS - https://nextjs.org
- TypeScript - https://www.typescriptlang.org
GitHub Gist:
- /pages/index.tsx page - https://gist.github.com/erictherobot/66b9076883b3d658a83ce59348e9457f
- /pages/posts/[id].tsx page - https://gist.github.com/erictherobot/0f17f2618fc1389961897fe15107046f#file-id-tsx-L22
Remember.... everything is an experiment....
JOIN DISCORD SERVER https://discord.com/invite/eAysEmRn
CODE OF CONDUCT: This channel is committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic. Please follow the code of conduct found here https://ericdavidsmith.com/code-of-conduct ... https://www.youtube.com/watch?v=2aWujq0r_7g
107104859 Bytes