-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Updating lab to use dbjson #10
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
Updating lab to use dbjson #10
Conversation
reconfiguring instructions for db.json and json-server
…pdated test files for async await
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! I found a couple of issues:
- The solution code for Actors.js and Directors.js both use a Card component. The component is present in the solution code, but there's nothing in the instructions about creating that component. (It's also confusingly named, imo.)
- The tests for Actors and Directors both rely on the data.js file. I think that's fine for now - I don't think it's worth spending time on at this point - but maybe change the file name to something more explicit so it's not confusing for students.
Co-authored-by: Liz Burton <[email protected]>
Good catch, thank you! I'll update that test. In the instructions I tell students that they're free to create new components if they see fit. I made a generic card component to demonstrate component re-usability in the solution. The old solution had a nested .map statement inside a mess of JSX within a component, which I thought could have used some refactoring. But if we think this is too confusing we can change it. |
OK I obviously didn't read the instructions very carefully. I think that's fine. My only suggestion would be to use a more descriptive component name like ReusableCard or something. (Hopefully you can think of something better than that). Or maybe just expand the hint about creating new components to suggest they watch out for places where they have repetitive or very similar code |
Good idea! I also just pushed up two changes to update those tests. The variables are just declared directly within the files now, rather than being imported from data.js |
Ok, updated README to include more explicit hints and renamed Card component to Reusable Card! |
No description provided.