How to update data to a reactjs website?

Hi Lauren,

There are no errors after I renamed the background in line 2 to background1 and background in line 3 to background2. Am I right for these?=

style={{
   background: "#dcdcdc",
   background: "-webkit-linear-gradient(to left, #dcdcdc, #ee82ee
)",
   background: "linear-gradient(to left, #dcdcdc, #ee82ee
)",
}}

What is wrong with File 2?=

import React, { Component } from "react";
import { withRouter } from "react-router-dom";

class ScrollToTop extends Component {
    componentDidUpdate(prevProps) {
        if (this.props.location !== prevProps.location) {
            window.scrollTo(0, 0);
        }
    }

    render() {
        return(
            this.props.children
        ); 
    }
}

export default withRouter(ScrollToTop)

Yes, that is right. Both match.

Do I show you the codes in my 3 files here or do I email you these?

Thank you!