Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

NextJS, create own hooks.

@m-h9

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


hey guys check this code here i have create my own hooks to communicate with api's.

Community feedback

Michal 665

@mbart13

Posted

avoid 1 character variables, it is considered bad practice

hooks name should start with lowercase

Marked as helpful

1

@m-h9

Posted

@mbart13 yes i did this ... but when deploy then webpack error arise. and also i check your profile. You did amazing work👍.

0
P
Patrick 14,285

@palgramming

Posted

Your drop down selector should have a unset option or a worldwide option. If one does not know the location of the country they should not have to go through the different options to do multiple searches to find the result

Marked as helpful

0

@m-h9

Posted

@palgramming so what is suppose to do to handle this.

0
P
Patrick 14,285

@palgramming

Posted

@m-h9 add in a option to your selector/dropdown that is like "Filter By Region" and as long as that is set as the default then the results from the search would then not filtered by area

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord