Control flashlight camera in reactjs

I am really new to reactjs and i am searching a way to control my camera flashlight with reactjs. I found out a package

But unfortunately that package just for react native and i am not be able to implement that to reactjs. Is there any package or something to control camera flashlight with reactjs?

Thank you