D2 validation (conditions) in the custom react form of DHIS2/UI

Can someone please help me how run the D2 validation (conditions) in the custom react form

We have created program rules using the DHIS2 smart setup and the form using the UI/ react components of DHIS2, however now we are unable to run the validations created using the program rule and the program rule variables API.

Would you know of a tool or a library that can be used to execute those conditions on form or if there is any other way of doing this at the moment.