Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
376 B
2
Indexable
import React from "react";
import "./Card.css";
import { Link } from "react-router-dom";

export default function Card(props) {
  return (
    <div className="container-card">
      <Link to={"recipe/" + props.id}>
      <img className="card-img" src={props.image} alt="mat" />
      <p className="img-card-text">{props.text}</p>
      </Link>
    </div>
  );
}