Skip to content

Instantly share code, notes, and snippets.

@stivncastillo
Last active September 10, 2018 06:12
Show Gist options
  • Save stivncastillo/0a45a4b638deef601dfa9a376dec3dc7 to your computer and use it in GitHub Desktop.
Save stivncastillo/0a45a4b638deef601dfa9a376dec3dc7 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Devhack - React</title>
<script src="https://unpkg.com/redux@latest/dist/redux.min.js"></script>
</head>
<body>
<div>
<p>
Counter: <span id="value">0</span> times
<button id="increment">+</button>
<button id="decrement">-</button>
<button id="incrementIfOdd">Incrementar si es impar</button>
<button id="incrementAsync">Incrementar Asincronamente</button>
</p>
</div>
<script>
const valueEl = document.getElementById('value')
document.getElementById('increment')
.addEventListener('click', function () {
})
document.getElementById('decrement')
.addEventListener('click', function () {
})
document.getElementById('incrementIfOdd')
.addEventListener('click', function () {
})
document.getElementById('incrementAsync')
.addEventListener('click', function () {
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment