How you can create a React.js site to showcase product details using Ant Design. First, make sure you have `create-react-app` and `antd` installed.
1. Set up a new React.js project with Create React App:
```bash
npx create-react-app product-detailscd product-details```
2. Install Ant Design:```bashnpm install antd```
3. Create a new file called `ProductDetails.js` in the `src` folder and paste the following code inside it:
```jsximport React from "react";import { Card } from "antd";const ProductDetails = () => { return ( <div style={{ padding: "24px" }}> <Card title="Product Details" style={{ width: 300 }}> <p>Name: Example Product</p> <p>Price: $99.99</p> <p>Description: This is an example product.</p> </Card> </div> );};export default ProductDetails;```
4. Open the `src/App.js` file and modify it as follows:
```jsximport React from "react";import ProductDetails from "./ProductDetails";const App = () => { return ( <div className="App"> <ProductDetails /> </div> );};export default App;```
5. Finally, start the development server:
```bash
npm start```
You should now see a React app displaying a card with product details on `http://localhost:3000`.
You can further customize the product details component using Ant Design's various components and styling options as per your requirements.