()
| 8 | const countStore = store(0); |
| 9 | |
| 10 | function Counter() { |
| 11 | const count = useStoreValue(countStore); |
| 12 | |
| 13 | return ( |
| 14 | <div className="counter"> |
| 15 | <span className="count">{count}</span> |
| 16 | <button onClick={() => countStore.set((c) => c + 1)}>+1</button> |
| 17 | </div> |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | function App() { |
| 22 | return ( |
nothing calls this directly
no test coverage detected