Basically, I have a web app that I am running using node.js backend and react on the frontend, I have a specific button I want to have an onClick feature which opens up the camera. Any idea how I have to go about this? I am a beginner at react so someone help out. Thank you in advance. Let's assume this is the button
<div className= {styles.cameraCont} onClick={openCamera}>
<p>Open Camera</p>
</div>
I have no clue what to make the function "openCamera" do to open the camera, any help is highly appreciated.