Flask 404 error when initializing a connection with a react applicaiont

Solution
# ...

app = Flask(__name__,
    static_url_path='',
    static_folder='./build'
)

# ...

@app.route('/')
def index():
    return app.send_static_file('index.html')

# ...