Skip to content

Instantly share code, notes, and snippets.

@brunobc
brunobc / React-Hooks.js
Created May 31, 2020 20:21 — forked from craigtaub/React-Hooks.js
Nested React Hooks
// https://itnext.io/under-the-hood-of-react-hooks-805dc68581c3
// Engine
const React = {
index: 0,
state: [],
useEffect: (callback, dependencies) => {
const cachedIndex = React.index;
const hasChanged = dependencies !== React.state[cachedIndex];
if (dependencies === undefined || hasChanged) {
{
// Define o tema do VSCode
"workbench.colorTheme": "Dracula",
// Configura tamanho e família da fonte
"editor.fontSize": 18,
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
@brunobc
brunobc / arrayzing.md
Last active October 1, 2018 11:33 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet