I am fairly new to ReactJS
I got a navbar, and I'm trying to make the buttons for it from React so I'll be able to achieve SPA. I am trying to create 1 button class with a constructor so I'll be able to do it for all my buttons.
This is what I'm trying to do:
class Button extends React.Component {
//insert constructor
handleClick = () => {
ReactDOM.render(this.SpecficiInformation, document.getElementById('content'))
}
render() {
return (
<p onClick={**this**.handleClick}>
{this.name}
</p>
);
}
}
ReactDOM.render(<Button />, document.getElementById(this.elementid));
Can you give some context? I'm trying to understand what are you doing onClick.
Sam Smith
Safeguarding the personal details of our customers is what we cherish. In this case, we ensure that your information is kept safe in our databases, which cannot be accessed by anyone essayswriting.services . For this reason, it guarantees you getting solutions for different types of literature review since no one will know whether you asked for assistance from a professional service.