26 Matching Annotations
- Nov 2022
-
www.jvt.me www.jvt.me
- Nov 2021
-
stackoverflow.com stackoverflow.com
-
The consumer component will barely change from our last example. The only difference is the way we'll get a reference to our store (since now the store is exported from the JS module):
-
-
svelte.dev svelte.dev
- Aug 2021
-
github.com github.com
-
Using a flag to disable prettier for a line, the next line or until I activate it again (ESLint like syntax). // prettier-disable border: { sep: "║", topLeft: "╔", topMid: "╦", top: "═", topRight: "╗", midLeft: "╠", midMid: "╬", mid: "═", midRight: "╣", botLeft: "╚", botMid: "╩", bot: "═", botRight: "╝" }, // prettier-enable
-
- Mar 2021
-
trailblazer.to trailblazer.to
-
Suppose that the validate task was getting quite complex and bloated. When writing “normal” Ruby, you’d break up one method into several. In Trailblazer, that’s when you introduce a new, smaller activity.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
While you could program this little piece of logic and flow yourself using a bunch of Ruby methods along with a considerable amount of ifs and elses, and maybe elsif, if you’re feeling fancy, a Trailblazer activity provides you a simple API for creating such flow without having to write and maintain any control code. It is an abstraction.
-
-
stackoverflow.com stackoverflow.com
-
time run_with_timeout 3 sleep_and_exit 1 7; echo $?
-
- Nov 2020
- Oct 2020
-
github.com github.com
-
github.com github.com
-
codesandbox.io codesandbox.io
-
-
svelte.dev svelte.dev
- Sep 2020
-
-
svelte.dev svelte.dev
-
svelte-forms-lib-sapper-docs.now.sh svelte-forms-lib-sapper-docs.now.sh
-
svelte.dev svelte.dev
-
developer.mozilla.org developer.mozilla.org
-
async function onEdit() { editing = true // enter editing mode await tick() nameEl.focus() }
-
-
codesandbox.io codesandbox.io
Tags
Annotators
URL
-
- Nov 2019
-
stackoverflow.com stackoverflow.com
-
const setRefs = useRef(new Map()).current; const { children } = props; return ( <div> {React.Children.map(children, child => { return React.cloneElement(child, { // v not innerRef ref: node => { console.log('imHere'); return !node ? setRefs.delete(child.key) : setRefs.set(child.key, node)
Illustrates the importance of having unique keys when iterating over children, since that allows them to be used as unique keys in a Map.
-
useRef(new Map()).current
-
-
github.com github.com
-
Referer: https://reasonml.github.io/ (The actually link to: https://github.com/reasonml-community/reason-react-example/tree/master/src/todomvc)
-
-
github.com github.com
-
pastebin.com pastebin.com
-
Couldn't find any web pages referencing this page. Why not? How did I even find it?
-