Format crossword data for @jaredreisinger/react-crossword
mainThe crossword data must be structured as a nested object containing across and down properties. Each property is a map (object) where the keys are the clue numbers (as strings or numbers) and the values are objects defining the clue details.
Each clue object must include:
clue: The text of the clue.answer: The correct answer (typically uppercase).row: The starting row index (0-indexed).col: The starting column index (0-indexed).
Using a map instead of an array for the clue numbers allows you to control the numbering and labeling of the clues manually.
{
across: {
1: {
clue: 'one plus one',
answer: 'TWO',
row: 0,
col: 0,
},
},
down: {
2: {
clue: 'three minus two',
answer: 'ONE',
row: 0,
col: 2,
},
},
}