Skip to content

Commit

Permalink
fix: formatting, github action
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvander committed Mar 3, 2024
1 parent 7d3807f commit cc5b724
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
14 changes: 9 additions & 5 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const useStore = create<Store>()(
}),
dec: () => set((state) => ({ count: state.count - 1 })),
})),
computeState
)
)
computeState,
),
),
)

useStore.setState({ countSq: 100 }) // error
Expand All @@ -48,8 +48,12 @@ function Counter() {
<br />
<span>{countSq}</span>
<br />
<button onClick={inc}>+1</button>
<button onClick={dec}>-1</button>
<button type="button" onClick={inc}>
+1
</button>
<button type="button" onClick={dec}>
-1
</button>
</div>
)
}
Expand Down

0 comments on commit cc5b724

Please sign in to comment.