Javascript – React Checking access from wrapper conponent
I want to check user access from wrapper component before clicking on a button(or before a button onClick function fires). Here is the button component <UltimateButton btntext="+ New document" classes="btn-primary" handleClick={create_new_doc} /> Here handleClick fires onClick function (create_new_doc). And suppose…