- Manage shared state
- Allow for subscriptions from React
- Allow for mutation from React
- Allow for subscriptions from non-React
- Allow for mutation from non-React
- Allow for methods on the global state
- Allow for derived data on the global state
- Optimized re-renders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mx-auto max-w-screen-xl"> | |
<div style="grid-template-columns: 1fr 2fr 3fr;" class="grid gap-4 m-4"> | |
<img | |
src="http://valleygrowlers.com/wp-content/uploads/2013/11/clean_line_circle_logo-300x300.jpg" | |
/> | |
<div | |
class="text-2xl" | |
> | |
Come join us every day starting at noon… Valley Growlers would love to have you as a guest. Come have a pint or take a growler or crowler to go.... | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as NanoTimer from "nanotimer"; | |
import { get } from "lodash"; | |
const foo = { | |
bar: { | |
baz: 1, | |
}, | |
}; | |
const iterateWithOptionalChaining = () => { |
- Install
@module-federation/nextjs-mf
.
yarn add @module-federation/nextjs-mf
- Add resolutions to
package.json
:
"resolutions": {
I hereby claim:
- I am jherr on github.
- I am jherr (https://keybase.io/jherr) on keybase.
- I have a public key ASDRInT-1RcfnxUl8uUCmoU3K2Joxb8pNp3lnwNwVZirJwo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"url": "http://placedog.net/900?id=44", | |
"name": "Oso", | |
"text": "Best dog on the planet" | |
}, | |
{ | |
"url": "http://placedog.net/900?id=45", | |
"name": "Ripley", | |
"text": "Best dog in the world" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<linearGradient id="boxGradient" x1="0%" y1="0%" x2="100%" y2="100%"> | |
<stop offset="0%" style="stop-color: #333;stop-opacity: 1" /> | |
<stop offset="100%" style="stop-color: white;stop-opacity: 1" /> | |
</linearGradient> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH="/Users/jherr/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.container { | |
width: 800px; | |
margin: auto; | |
padding: 1rem; | |
} | |
.detail { | |
display: grid; | |
grid-template-columns: 30% 70%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"id": 1, | |
"name": { | |
"english": "Bulbasaur", | |
"japanese": "フシギダネ", | |
"chinese": "妙蛙种子", | |
"french": "Bulbizarre" | |
}, | |
"type": [ | |
"Grass", |