Create a Chess Game with ReactJS - Part 5: Grid snapping

In this fifth part of the series we finish moving the pieces. When we drop a piece it will now snap to the tile on which the piece was dropped. The code in this video can be found on this GitHub repository: Timestamps: 0:00 Introduction 2:50 Using state for the pieces 4:40 Adding the initial pieces state 9:55 Calculating grid position 16:35 Creating state for the current location 19:30 Creating state for the selected piece
Back to Top