Skip to content

Conversation

@mckay1818
Copy link

No description provided.

import chatMessages from './data/messages.json';

const App = () => {
const [entries, setEntries] = useState(chatMessages);

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(

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 = () => {

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants