Skip to content

Instantly share code, notes, and snippets.

View gabo2192's full-sized avatar

Gabriel Rojas gabo2192

  • Peru
View GitHub Profile
/**
* In this short assessment, the following code tries to implement the React Suspense API,
* but does so incorrectly. There are 3 core issues with how these components utilize Suspense and concurrent mode -- can you find them?
*
* In your submission, be sure to:
* 1) Clearly identify what the 3 core issues are, and how they violate the principles of React Suspense;
* 2) Write and submit the code to fix the core issues you have identified in a gist of your own
*
* If you aren't familiar with Suspense, the docs are a good starting place:
*
// Caishen SDK Example Integration
// GitHub Repository: https://github.com/CaishenTech/caishen-sdk
//
// This example demonstrates:
// 1. Initializing the SDK with a project key
// 2. Creating an ETHEREUM wallet
// 3. Performing a crypto swap
// 4. Checking balance and working with tokens
import { CaishenSDK, createAgentTools } from "@caishen/sdk";