javascript-code.js
This file
Path
examples/demo/src/resources/javascript-code.js
16 lines · 329 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than f85898f point at it.
chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 1–16why, one step back1export default `import { create } from 'zustand'23const useStore = create((set) => ({4 count: 1,5 inc: () => set((state) => ({ count: state.count + 1 })),6}))78function Counter() {9 const { count, inc } = useStore()10 return (11 <div>12 <span>{count}</span>13 <button onClick={inc}>one up</button>14 </div>15 )16}`