Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
I got this error when I run my react project
Error: Objects are not valid as a React child (found: object with keys {pathname, search, hash, state}). If you meant to render a collection of children, use an array instead.

Bakery.js

import React from "react";

import { Link } from "react-router-dom";

import "../Styles/Filter.css";

function Bakery(props){

return(

\<div\>

\<Link to='/details' className="btn"\>

\<div className="row result-section ms-md-3 mb-3 p-4"\>

\<div className="col-12 col-sm-12 col-md-6 col-lg-3"\>

\<img

className="thumb"

src={require("../Assets/breakfast.jpg").default}

alt="Restaurant Thumb"

/\>

\</div\>

\<div className="col-12 col-sm-12 col-md-6 col-lg-9"\>

<h3>

{props.name}</h3>


<h5>

{props.place}</h5>


<h6>

{props.location}</h6>


\</div\>

<hr className="line-break mt-3" />


\<div className="row"\>

\<div className="col-12 col-sm-12 col-lg-4"\>

\<table className="table-transparent"\>

\<thead\>

\<tr\>

\<th scope="row"\>CUISINES:\</th\>

\<td\>{props.cuisine}\</td\>

\</tr\>

\</thead\>

\<tbody\>

\<tr\>

\<th scope="row"\>COST FOR TWO:\</th\>

\<td\>{props.cost}\</td\>

\</tr\>

\</tbody\>

\</table\>

\</div\>

\</div\>

\</div\>

\</Link\>

\</div\>);

}

export default Bakery;

Filter.js

          <Bakery name="The Big Chill Cakery"  place="FORT" location="Shop 1, Plot D, Samruddhi Complex, Chincholi …" cuisine="Bakery" cost={700}/>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!