Comments (2)
Do write this inside any functional component.
export default mycomp() {
const [score, setScore] = useState(0);
return (
<CrosswordProvider data={crossword} onAnswerCorrect={() => setScore(score + 1)}>
<DirectionClues direction="across"/>
<DirectionClues direction="down" />
<CrosswordGrid />
</CrosswordProvider>
)
}
Do let me know if you need any further assistance
from react-crossword.
Thanks very much @CodeDecree
I will experiment and see how it goes.
Cheers!
from react-crossword.
Related Issues (20)
- Allow to set cell programmatically? HOT 4
- A callback function that notifies that the word is guessed incorrectly HOT 3
- How to replace (localize) direction header? HOT 3
- Allow clues to appear separate from answer grid HOT 2
- Imperative `isCrosswordCorrect()` function returns `false` after web page reloads HOT 8
- Rich text formatting of clues HOT 2
- Snyk brings in a boat-load of dependencies HOT 9
- Allow retrieval of player's guess onAnswerComplete
- Node version > 10.18 HOT 1
- Support .ipuz format HOT 2
- Cell input not functioning
- More natural navigation through the puzzle? HOT 2
- a11y issues preventing usage by people with disabilities HOT 2
- Allow to show what characters have been entered correctly/incorrectly HOT 8
- i've run every example in the repo and it doesn't work HOT 2
- Call onClueSelected on click of cell and input to know the clue
- Cell Overwritten at Junction HOT 2
- Allow unused cells
- Allow define how an answer is correct?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-crossword.