-
Notifications
You must be signed in to change notification settings - Fork 85
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
Cedar - Lux #65
base: main
Are you sure you want to change the base?
Cedar - Lux #65
Conversation
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.
Great work on this javascript in the web project! The styles are super cool, and you've clearly met the learning goals around applying styles dynamically and event handling. Your code is clear and readable, and makes great use of helper functions. Nice work!
<body> | ||
|
||
</body> | ||
</html> |
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.
Nice work writing clear, semantic html.
@@ -0,0 +1,204 @@ | |||
const state = { |
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.
Great use of state object
// rendering | ||
const renderTemp = () => { | ||
const { | ||
temp: { cTemp, fTemp }, |
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.
Nice destructuring!
}; | ||
|
||
// helper logic for rendering | ||
const getTempClass = () => { |
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.
Notice that getTempClass
and getLandscapeContent
have the same conditional tests. Consider refactoring and combining to DRY up your code.
No description provided.