So i have a React application I'm working on and i want to link the github repo to each mapped out card via props. props is fine for all other array values. but for some reason my URL to an external link isn't working. It doesn't even console a value. the IMG URL works and display absolutely fine.
here's a sample from array:
[
{
name: "Giphy Searcher",
subTitle: "Front-End React Project",
imgURL: "https://i.ibb.co/MkgZ5rj/Screen-Shot-2022-08-10-at-7-52-01-AM.png",
info: "Search application resulting from Giphy API",
info2: "secondary info paragraph form",
githubLink: "http://www.github.com",
liveSite: "http://www.deployment.com"
}
]
and here is a tag inside the card:
function Cards(props) {
return (
<div className="cardHolder">
<a target='_blank' href={props.githubLink}>
<Card className="card">
<Card.Img src={props.imgURL} />
<Card.Body>
<Card.Title className="cardText">{props.name}</Card.Title>
<Card.Text className="cardText">{props.subTitle}</Card.Text>
<Card.Text className="cardText">{props.info}</Card.Text>
<Card.Text id="gameInfo"> {props.infoTwo} </Card.Text>
</Card.Body>
</Card>
</a>
</div>
)
}