How do I get a part of a JSON, put in a variable, and then play this variable in a widget of my layout?
Example: ( link ) I want to get the value of "ip", and put in my widget instead of the value '1,410' .
constructor(props){super(props);this.state={data:[]}}componentDidMount(){letURL='http://ip.jsontest.com/'fetch(URL).then(function(response){letdata=response.json()returndata;}).then((json)=>{console.log('parsedjson',json)data:json;})}render(){return(<divclassName="container text-center">
<div className="row">
<h1> Quero que apareca o Ip aqui = {this.state.data.ip}</h1>