evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a React component that displays a filterable product list with URL-based state management and appropriate scroll behavior.
Create a ProductFilter component that:
Implement the following scroll behaviors:
category parametersearch parameter?category=electronics @test?search=laptop but page maintains scroll position @testexport interface Product {
id: number;
name: string;
category: 'electronics' | 'clothing' | 'books';
}
export function ProductFilter(): JSX.Element;Provides type-safe URL query parameter state management.
Provides the React framework for building the component.