Sharing HA controls with React App

Hello, I’m working on a personal home project using react/nodejs and I’m new to HA. The UI I’m working on has some controls for lights and I was wondering if it is possible to use HA light controls within my UI. Is this allowed? If so, is there any documentation available? Thank you all and stay safe!