Im begining to learn react and i having problems importing a complement. It does not show on the app nor shows any error. This is the complement code:
import "bootstrap/dist/css/bootstrap.css";
const cardComponent = () => {
return (
<div className="card">
<img className="card-img-top" src="..." alt="Card image cap" />
<div className="card-body">
<h5 className="card-title">Card title</h5>
<p className="card-text">
Some quick example text to build on the card title and make up the
bulk of the card's content.
</p>
<a href="#" className="btn btn-primary">
Go somewhere
</a>
</div>
</div>
);
};
export default cardComponent;
And the app code is this:
import "./App.css";
import cardComponent from "./component/cardComponent";
const App = () => {
return (
<div className="App">
<cardComponent />
</div>
);
};
export default App;
Any tip would be apreciated