Skip to content

Instantly share code, notes, and snippets.

View michelecomfort's full-sized avatar

Michele Comfort michelecomfort

View GitHub Profile

React Router Prework

This gist contains a short assignment we'd like everyone to complete before our formal lesson. The prework involves reading some of the React Router documentation, and will allow us to keep the lesson more hands on.

Instructions

  1. Fork this gist
  2. On your own copy, go through the listed readings and answer associated questions

You will not be turning this in; it's for your own understanding/learning/benefit 😁

@michelecomfort
michelecomfort / Mod-4-Intermission.md
Last active January 31, 2022 02:23
Mod 4 Intermission

Mod 4 Intermission

Stretch Inquiry - GraphQL

Recently, I've spent some time digging into the advantages of using GraphQL over REST. As a developer who is more passionate about the client-side, the intersection of providing a user with an experience that doesn't overload them with data and being able to seamlessly make changes independent of the backend is where GraphQL comes into play.

GraphQL vs REST

REST

RESTful APIs are stateless servers, which means they rely on strict endpoints to gather data needed by the client, rather than attempting to remember or hold onto prior requests. In order to obtain the needed data, more often than not, multiple endpoints are needed to acquire all the data needed in the application. Each endpoint resolves to specific objects, gathered most typically using an id. There are several disadvantages to this frontend-backend communication. For starters, a lot of the data contained at each endpoint is irrelevant to the UI, peripheral info associated with the user, but