Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 478 Bytes

TODO.md

File metadata and controls

25 lines (20 loc) · 478 Bytes
  • Update to latest React
  • Package a local version of Gatsby with hooks support
  • Switch to SVG emoji heart
import React, { useState } from 'react'

const handleSubmit = (value, mutation) => {
  return ev => {
    ev.preventDefault()
  }

  // use value
}

function() {
  const [value, setValue] = useState('')

  return (
    <form onSubmit={handleSubmit(value, mutation)}>
      <input value={value} onChange={ev => setValue(ev.target.value)} />
    </form>
  )
}