loading...

Discussion on: Rails API with a frontend built in React, Part IV.

Collapse
giomv profile image
Giulio Mondoñedo

Hey, nice rails+react series. Just a couple of observations.

This line in the MovieListItem component is not necessary:

import { prettyDate } from "../../../utils/langHelper"

In the App.js this import was missing:

import { BrowserRouter as Router } from "react-router-dom";

And finally the base url in the .env file should change to:

REACT_APP_API_URL=localhost:3000/api/v1/

Collapse
jean182 profile image
Jean Aguilar Author

Hi thank you, I will make the corrections. If you have any questions, suggestions feel free to ask me.