Skip to content

Instantly share code, notes, and snippets.

View herberthk's full-sized avatar
🏠
Full stack developer

Kavuma Herbert herberthk

🏠
Full stack developer
View GitHub Profile
@herberthk
herberthk / index.js
Last active March 30, 2021 14:50
Contra-challenge
/**
* First issue was missing fallback prop on suspense which is required
*
* The second issuse was useEffect hook dependences of SuspensefulUserProfile component only required userId such that it can re-render if userId prop changes
*
* The third issuse was Suspense component was used on sub component not on main component
*/
import { Suspense, useState, useEffect } from 'react';
const SuspensefulUserProfile = ({ userId }) => {
@herberthk
herberthk / Instructions.sh
Created July 19, 2018 17:00 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa