Skip to content

Conversation

@majdjadalhaq
Copy link

Copy link

@JalalHabeeb JalalHabeeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work with hooks and a custom hook.
only one comment 👍🏽


const FavoritesContext = createContext();

export const FavoritesProvider = ({ children }) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One file should only export one React component. It's better to separate the exports in two files

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the feed back i just fixed it and pushed the commit

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