componentDidMount(){

        // calling our get products function from  apirouter
        // we return our response that will send our json object of all our products
       
        getProducts() // [Promise]
        .then (response => { return response.json()})
        .then(data => {this.setState({data})})

    }
// and render or load our jsx data
and render or load our jsx data
and render or load our jsx data
componentDidMount(){
        getProducts() 
        .then (response => { return response.json()})
        .then(data => {this.setState({data})})
    }
componentDidMount ( ) { getProducts ( ) . then ( response => { return response . json ( ) } ) . then ( data => { this . setState ( { data } ) } ) }
and render or load our jsx data
and render or load our jsx data
// calling our get products function from  apirouter // we return our response that will send our json object of all our products // [Promise]