3 ms·
JSX is just an extension of JavaScript. I wrote React-like code because that's very common right now but this would also be true for more traditional JS. c
by neurotrace 6y ago
JSX is just an extension of JavaScript. I wrote React-like code because that's very common right now but this would also be true for more traditional JS.
const todoItems = []
addTodoItem.addEventListener(event => {
todoItems.push(event.target.value)
renderTodoItems()
})