Question: The component should have the following functionalities: The input field should take number input which is the pokemon id . The id should be in

The component should have the following functionalities:
The input field should take number input which is the pokemon id.
The id should be in range 1 and 151 inclusive.
Otherwise, the component should show an alert with the text 'Pokemon ID must be between 1 and 151'.
On getting a valid pokemon id, the component should make a GET request to the API endpoint '
https://jsonmock.hackerrank.com/api/pokemon?id==1
 The component should have the following functionalities: The input field should

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!