-
Notifications
You must be signed in to change notification settings - Fork 17
Ocelots - McKay Warren #14
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
base: main
Are you sure you want to change the base?
Conversation
| import chatMessages from './data/messages.json'; | ||
|
|
||
| const App = () => { | ||
| const [entries, setEntries] = useState(chatMessages); |
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 use of useState for tracking changes
| }; | ||
|
|
||
| ChatLog.propTypes = { | ||
| entries: PropTypes.arrayOf( |
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 use of PropTypes for data requirements
| const App = () => { | ||
| const [entries, setEntries] = useState(chatMessages); | ||
|
|
||
| const getTotalHearts = () => { |
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 dynamic tallying of like count
No description provided.