Skip to content

Instantly share code, notes, and snippets.

View ricomadiko's full-sized avatar
💁‍♂️
useRico

Eric Cheung ricomadiko

💁‍♂️
useRico
View GitHub Profile
@ricomadiko
ricomadiko / App.js
Last active November 19, 2019 16:43
import React, { useContext } from 'react';
import { AppContext } from './contexts/app';
const App = () => {
const { state, dispatch } = useContext(AppContext);
const handleClick = () => {
dispatch({ type: 'action_1', payload: { key: 'value'}})
}
@ricomadiko
ricomadiko / .editorconfig
Last active January 1, 2020 22:57
Git files
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@ricomadiko
ricomadiko / package.json
Created October 18, 2020 22:12
Cutting edge react playground
{
"name": "playground",
"version": "0.1.0",
"private": true,
"dependencies": {
"framer-motion": "^2.9.1",
"react": "next",
"react-dom": "next",
"react-router": "next",
"react-router-dom": "next",
@ricomadiko
ricomadiko / settings.json
Last active January 7, 2021 23:17
VS Code Settings
{
"breadcrumbs.enabled": true,
"breadcrumbs.symbolSortOrder": "type",
"editor.cursorSmoothCaretAnimation": true,
"editor.cursorStyle": "line-thin",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "'JetBrains Mono', 'SF Mono', 'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": false,