I've been working on creating a TicTacToe game using React, and I've successfully created squares for the board. However, when I click on one of the squares, it seems to move slightly downward. Any idea why this might be happening?
.square {
height: 70px;
width: 70px;
background-color: #fff;
border: 1px solid #000;
outline: none;
margin: 2px;
}
.board {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 400px;
height: 400px;
}
Another issue I'm facing is with my VsCode settings - React components do not automatically close when saving. I would like them to appear as <Component> instead of just <Component />. Any suggestions on how to fix this?