Skip to main content
The React components and the JavaScript client are on npm as release candidates of 2.0.0. They’re the packages the Prescribe app is built on, and you can build with them before the stable release.

Install

Release candidates are published under npm’s rc tag, as 2.0.0-rc.N.
@photonhealth/react includes the matching @photonhealth/client, so you don’t install that separately. Include @rc until 2.0.0 is released. The latest release candidate is 2.0.0-rc.1, for both packages. The next release candidate adds:
  • Machine credentials for the JavaScript client, so your backend can call it with its own client id and secret. See On your backend.
  • Sig options: rx.loadSigs() in the client, and suggested sigs in PhotonPrescription. See Sig options.

Start in the sandbox

Use neutron while you build. See Environments.
The READMEs cover the rest: sign-in, live objects, errors, each card’s props and mapping your own components. These docs cover the same packages in React components, JavaScript client and Styling.

What a release candidate means

  • Each 2.0.0-rc.N can change before 2.0.0. Pin an exact version, such as 2.0.0-rc.1, to choose when you take changes.
  • 2.0.0 will be published under npm’s latest tag. Then you can drop @rc.
  • @photonhealth/client/testing, the helpers for your own tests, may change before 2.0.0.
@photonhealth/react 1.x is an earlier, unrelated package with a different API. 2.0.0 isn’t an upgrade from it. If you use 1.x, see the migration guide.
Last modified on October 29, 2026