Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intentional or unintentional bug in Square.js #87

Open
schinns opened this issue Dec 17, 2020 · 0 comments
Open

Intentional or unintentional bug in Square.js #87

schinns opened this issue Dec 17, 2020 · 0 comments

Comments

@schinns
Copy link

schinns commented Dec 17, 2020

https://github.com/LambdaSchool/react-stateful-widgets/blob/51e2cb366bd1e1a83c50f60856a5dc93e3d05ce2/src/components/Squares.js#L55

I've observed a lot of students get stuck with a bug that is produced by the code above.
It should be:

 className={`square ${getClassName(id)}`} 

A lot of the students complete the assignment, but then don't notice that the class name evaluates to squareactive when it should be square active

@schinns schinns changed the title Intentional or unintentional bug on Square.js Intentional or unintentional bug in Square.js Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant