Skip to content

Instantly share code, notes, and snippets.

@rvlb
Last active January 24, 2022 12:15
Show Gist options
  • Save rvlb/b543c70fdf09d2831f76ef4695aed010 to your computer and use it in GitHub Desktop.
Save rvlb/b543c70fdf09d2831f76ef4695aed010 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Redux without React</title>
</head>
<body>
<div>
<div>
<input name="search-input" type="search">
<button id="search-button">Procurar</button>
</div>
<div>
A última busca foi: <span id="last-search"></span>
</div>
<div>
<ul id="list"></ul>
</div>
</div>
<!-- Imports para configurar o Redux na aplicação -->
<script src="https://unpkg.com/redux@latest/dist/redux.min.js"></script>
<script src="redux-config/api.js"></script>
<script src="redux-config/actions.js"></script>
<script src="redux-config/reducers.js"></script>
<script src="redux-config/store.js"></script>
<!-- Imports da interface -->
<script src="http://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="script.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment