Good morning this is not working how can i add link to this table

columns = [
{
path: “title”,
label: “Title”,
content: movie => <Link to={/movies/${movie._id}}>{movie.title}
},

Hi,
What I see is the array is not closed. Simply copy the content in curly brackets.
Paste it just after the comma by the end.
Edit accordingly.

Hope this helps.
Regards.

import React, { Component } from “react”;
import { Link } from “react-router-dom”;
import Table from “./common/table”;
import Like from “./common/like”;

class MoviesTable extends Component {
columns = [
{
path: “title”,
label: “Title”,
content: movie => <Link to={/movies/${movie._id}}>{movie.title}
},
{ path: “genre.name”, label: “Genre” },
{ path: “numberInStock”, label: “Stock” },
{ path: “dailyRentalRate”, label: “Rate” },
{
key: “like”,
content: movie => (
<Like liked={movie.liked} onClick={() => this.props.onLike(movie)} />
),
},
{
key: “delete”,
content: movie => (
<button
onClick={() => this.props.onDelete(movie)}
className=“btn btn-danger btn-sm”
>
Delete

),
},
];

render() {
const { movies, onSort, sortColumn } = this.props;

return (
  <Table
    columns={this.columns}
    data={movies}
    sortColumn={sortColumn}
    onSort={onSort}
  />
);

}
}

export default MoviesTable;

you just forgot to close the bracket

content: movie => <Link to={`/movies/${movie._id}`}>{movie.title}</Link>