Skip to content

React integration

Status: planned. The @zynq/react package will connect @zynq/core to React and React Router.

Planned API

  • Same schema from @zynq/core (s.string(), s.number(), etc.).
  • A hook (e.g. useZynq(schema)) that returns state synced with the URL.
  • An adapter for React Router that implements the core Router interface.

Until the package is published, you can use @zynq/core directly and implement a small adapter for your router: see Engine & Router.

Stay updated

Check the repository for progress on @zynq/react and release notes.