Senator Marco Rubio – .json

This is one basic application that takes data from a locally hosted “sen.json” file that contains data from the 50 Senators, then manipulate it using data.filter(***).map(***).reduce(***) to obtain only the information of Marco Rubio, then uses Component-State to display it on the screen for 2 seconds when the <button> is click.

Note: the images are not in the .json file but are passed through “this.state.pic

 

After Button click

Here is the GitHub-Repo

Code: 

I hope this was helpful…



Copyright 2017. All rights reserved.

Posted October 8, 2017 by Edmundo in category "React