A framework for building native apps using React
Overall
score
100%
Evaluation — 100%
↑ 1.06xAgent success when using this tile
Build a reusable product card component that displays product information with a responsive layout using flexbox.
The component should accept the following props:
productName (string): The name of the productprice (number): The product priceimageUrl (string): URL to the product imagedescription (string): A brief product descriptioninStock (boolean): Whether the product is in stockThe component should display:
inStock propStyling and layout requirements:
@generates
import React from 'react';
interface ProductCardProps {
productName: string;
price: number;
imageUrl: string;
description: string;
inStock: boolean;
}
export const ProductCard: React.FC<ProductCardProps>;Provides the core UI components and styling system for building the product card component.
Install with Tessl CLI
npx tessl i tessl/npm-react-native@1000.0.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10