This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function App() { | |
| const [timer, setTimer] = useState(60) | |
| const [pause, setPause] = useState(false) | |
| const minute = Math.floor(timer/60) | |
| const seconds = timer%60 | |
| useEffect(() => { | |
| setTimeout(() => { | |
| if(timer === 0){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const btnAdd = document.querySelector('#adicionar') | |
| const list= document.getElementById('lista') | |
| const listForOutput = [] | |
| function adicionar(){ | |
| const text = document.getElementById('text').value | |
| const li = ` | |
| <li> |
NewerOlder