draft @ 1740145004397

https://stas.layer3.press/articles/2526ba65-35f8-4ec7-98d2-6aae9cc95669

Reply to this note

Please Login to reply.

Discussion

a

aaa

->->->aaaa

const [countAtom, useCountListener] = atomWithListeners(0)

function EvenCounter() {

const [evenCount, setEvenCount] = useState(0)

useCountListener(

useCallback(

(get, set, newVal, prevVal) => {

// Every time `countAtom`'s value is set, we check if its new value

// is even, and if it is, we increment `evenCount`.

if (newVal % 2 === 0) {

setEvenCount((c) => c + 1)

}

},

[setEvenCount],

),

)

r

qwr34

3563456

This NIP defines kind:30818 (an addressable event) for descriptions (or encyclopedia entries) of particular subjects, and it's expected that multiple people will write articles about the exact same subjects, with either small variations or completely independent content.

Articles are identified by lowercase, normalized ascii d tags.

This NIP defines kind:30818 (an addressable event) for descriptions (or encyclopedia entries) of particular subjects, and it's expected that multiple people will write articles about the exact same subjects, with either small variations or completely independent content.

Articles are identified by lowercase, normalized ascii d tags.

9807

345345

324

234

3452345235_#@$%@#$5

324512345

2345

32452345

------234234

First comment!

2. Second comment

1. ->

2. ->

3.

1.3

1. ->

2. ->

3. ->

4 ->

eee

fgrg2wreg

324234

1.

34

1. First Item