Skip to content

Commit

Permalink
Fix counter vanilla example (#4657)
Browse files Browse the repository at this point in the history
Co-authored-by: renguanghui <[email protected]>
  • Loading branch information
iqingting and renguanghui authored Jan 9, 2024
1 parent 1ea45b9 commit 89bcdd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/counter-vanilla/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<html>
<head>
<title>Redux basic example</title>
<script src="https://unpkg.com/redux@latest/dist/redux.min.js"></script>
</head>
<body>
<div>
Expand All @@ -14,7 +13,9 @@
<button id="incrementAsync">Increment async</button>
</p>
</div>
<script>
<script type="module">
import * as Redux from 'https://unpkg.com/redux@latest/dist/redux.browser.mjs'

function counter(state, action) {
if (typeof state === 'undefined') {
return 0
Expand Down

0 comments on commit 89bcdd9

Please sign in to comment.