dy / unihooks

Universal unreacted hooks
MIT License
21 stars 1 forks source link

server context #27

Open dy opened 4 years ago

dy commented 4 years ago

Used in context of web-server, it can provide hooks for a path handler.

function handler (req) {
  let [{ headers }] = useRequest('./some/path')

  return resp
}