Skip to content

Instantly share code, notes, and snippets.

// The 3 problems are: no need to use useEffect, no need to use useState, no need to pass the props around, there is no fallback on Suspense, and fetchUserProfile (assuming it exists, it's imported and returns an object with a list of users) function should be stored in a const.
// Here is how I would write it:
import { Suspense } from 'react';
const data = fetchUserProfile();
const SuspensefulUserProfile = () => {
return (
@guvarallo
guvarallo / README-Template.md
Created July 8, 2020 21:28 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites