Type-safe search params state manager for Next.js - Like React.useState, but stored in the URL query string
Overall
score
96%
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 @test@generates
export 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.
Install with Tessl CLI
npx tessl i tessl/npm-nuqsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10