https://xavieryuhanliu.medium.com/reactjs-onclick-gets-executed-when-rendered-or-loaded-without-a-click-837fc3c71cca