Skip to content

Instantly share code, notes, and snippets.

View LambertSchulze's full-sized avatar
🏴󠁧󠁢󠁳󠁣󠁴󠁿

Lambert Schulze LambertSchulze

🏴󠁧󠁢󠁳󠁣󠁴󠁿
View GitHub Profile
@LambertSchulze
LambertSchulze / keybase.md
Created April 22, 2021 20:22
Keybase public key

Keybase proof

I hereby claim:

  • I am lambertschulze on github.
  • I am lambird (https://keybase.io/lambird) on keybase.
  • I have a public key ASBxbMQlp9zdfGrM3KTzRidv3gsNtQuJRymDgS3tfrtJLAo

To claim this, I am signing this object:

@LambertSchulze
LambertSchulze / ReduxCounter.js
Last active August 9, 2020 01:28
Redux Counter Example
const INCREMENT = 'INCREMENT';
const DECREMENT = 'DECREMENT';
const counterReducer = (state = 0, action) => {
switch(action.type) {
case INCREMENT:
return (state += 1);
case DECREMENT:
return (state -= 1);
default: return 0;