I am using the ButtonGroup and Button from ReactStrap. I have set an onClick function when you click one of the buttons:
< ButtonGroup > <Button>Edit</Button> <Button onClick={console.log("Print some text")}>Print text</Button> <Button>Set as default</Button> </ButtonGroup > But when I load the page this is what I get: 
Before I have even clicked the button. And if I do click it, nothing comes out in the console. Any ideas?
onClick={() => {console.log("Print some text")}}