Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTihomir Bogoslovov / wYh0iUt
9,388 PointsWhy is there no players data?
Hello everyone,
I would like to ask why I cannot see any players data while running the project. And since we are working with a functional component(right?) we cannot set the players state in the function, yes?
How could I populate the app so it has some users?
Thanks in advance
2 Answers
Andrew Hinkson
Full Stack JavaScript Techdegree Graduate 25,822 PointsHello, Yea the only way to be able to populate the scoreboard is to implement the AddPlayerForm.js and Counter.js files. It is weird they would have a lesson that isn't technically finished but if you go ahead and finish up what that last paragraph said then you should be able to add/remove/update scores and see the app fully working using hooks and context. Hope this helps!
I do understand that maybe at this point they want us to branch out and be able to complete this project with the info they have already given but its weird its the only one I have seen like this so far.
Have a great day!
Peter Mingione
10,489 PointsI am trying to run the final version of the scoreboard app in the project files. (Project: Use React's Context API with Hooks.) But the app is not working. The stopwatch is working but the add and remove player, as well as the increase and decrease score, functionality is not working.
I am getting an error in the console but I am not sure how to interpret it.
./src/Components/Context/index.js react_devtools_backend.js:3973
Line 33:10: 'players' is assigned a value but never used no-unused-vars
overrideMethod @ react_devtools_backend.js:3973
printWarnings @ webpackHotDevClient.js:138
handleWarnings @ webpackHotDevClient.js:143
push../node_modules/react-dev-utils/webpackHotDevClient.js.connection.onmessage @ webpackHotDevClient.js:210