frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Create solutions and solve the test of Platzi Master FrontEnd

Open juanAlcala0204 opened this issue 3 years ago • 0 comments

Solution by: Juan David Alcala Sanchez email: [email protected] Welcome to solution by Juan Alcala:

In this test i take the way of use Context API for use the Global Information of the User.

Structure Context: ->context folder. ->UserInformationContext ( Here you can find the Context of the UserInformatio) ->hooks -> useUserInformation ( Here you can find some functions that the Context UserInformation will be pass to the components)


¿How i get the user Information and consume the API? For this i used the server local that the project recommend with the json-server, and in the data.json you can find my info that i consumed.

For this i created a global function call getData, and there you can find the Fetch that send the request to json-server and get the infoUser.


Extra Notes:

-> I was created the ListItems Components where you can find differents components of the parts that have lists, like Experience, Skills, etc.

Thanks for this test, and i do my better effort

juanAlcala0204 avatar May 09 '21 04:05 juanAlcala0204