How to handle Lit-Element input onChange

<input type="text" onChange={e => console.log(e.target.value)} />
<input type="text" @change=${e => console.log(e.target.value)}/>
  • onChange -> @change
  • onSubmit -> @submit
  • onMouseOver -> @mouseover
  • onKeyUp -> @keyup
<input type="text" value="${myVariable}" />

--

--

--

I really like building stuff with React.js and Docker and also Meetups ❤

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin Simper

Kevin Simper

I really like building stuff with React.js and Docker and also Meetups ❤

More from Medium

Do you know the greatest ANALOGY in react?…{props}

Tensile machine for props usage

Where do Higher Order Components come from?

Don’t Develop Drunk

Spread syntax (…)