React Chessboard UI

v
menu
hide

reversed (optional)

type reversed = boolean;

You can reverse the chessboard to make it more comfortable for playing as black pieces.

Code

<ChessBoard 
    FEN="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
    onChange={handleChange}
    onEndGame={handleEndGame}
    reversed // <~~~ flag for reversing board
/>

Example