Skip to content

Instantly share code, notes, and snippets.

View brandon-pereira's full-sized avatar
🤖

Brandon Pereira brandon-pereira

🤖
View GitHub Profile
/**
* I'm going to be honest, I thought I was a 5 in React and I knew of Suspense,
* but now that I'm seeing that Concurrent React is already available this is the first
* I'm reading of this.
*
* I should have known to never give a 5 on anything in an interview :D
*
* The core issues:
* - Fallback state was not set
* - Didn't use the Suspence data fetching API (wrapPromise function below), not sure the 'proper' naming of this TBH.
Hello World