Skip to main content
The React components and the JavaScript client are on npm as release candidates of 2.0.0. These public releases lag the packages currently used by the Prescribe app.

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.2, for both packages. It uses the current Network schema, and 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 in the client and PhotonPrescription. See Sig options.
2.0.0-rc.1 uses an older Network schema. Coming from it, move a patient’s phone, email and address from demographic to contact.

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.2, to choose when you take changes.
  • rc resolves to 2.0.0-rc.2. latest still resolves to 2.0.0-rc.1, so an install without @rc gets the older release. latest does not mean a stable 2.0.0 release is available.
  • @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 November 23, 2026