Type-safe search params state manager for Next.js - Like React.useState, but stored in the URL query string
Overall
score
96%
Build a Next.js product filtering dashboard that manages filter state through URL query parameters. The dashboard should support three filter types: category tags, price range, and sorting preferences.
The dashboard must maintain the following filter state in the URL:
?category=electronics&category=clothing)min and max numeric values for price filtering (e.g., ?priceRange={"min":10,"max":100})?sort=price,rating,name)Create a React component ProductFilters that:
The following test cases must be implemented:
@generates
The test file should be created at:
@generates
Type-safe search params state manager for React frameworks. Provides hooks for managing URL query string state.
React framework for building full-stack web applications.
JavaScript library for building user interfaces.
Testing utilities for React components.
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