Skip to content

Instantly share code, notes, and snippets.

View gist:156e69c0a8132a9d03becf1c6b6d14d5
// 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 Jul 8, 2020 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.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