Skip to content

Instantly share code, notes, and snippets.

View Phoenix-GH's full-sized avatar
🏠
Working from home

Fenix Phoenix-GH

🏠
Working from home
  • Toptal
  • Earth
View GitHub Profile
@Phoenix-GH
Phoenix-GH / suspense.jsx
Created July 21, 2021 03:12
Gist for the interview for Contra
/**
* 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:
*
@Phoenix-GH
Phoenix-GH / GenericPickerStep.ts
Created December 3, 2020 16:14
GenericPickerStep
import * as React from "react";
import {Element} from "react-scroll/modules";
import {titleCase} from "../helpers/strings";
import {ICarouselItem} from "../models/ICarouselItem";
import leftArrow from '../assets/left-arrow-white.svg';
import rightArrow from '../assets/right-arrow-white.svg';
export const socialButtonSize = 40;
export interface IPickerProps {