How can I dynamically take label values in Reactjs?
I am trying to get a attribute input for the label tag while rendering the component. Using props to do this but its giving the following error- Cannot read properties of undefined (reading 'props') TypeError: Cannot read properties of undefined…