CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-types--react

tessl install tessl/npm-types--react@19.1.0

TypeScript definitions for React, the popular JavaScript library for building user interfaces

Agent Success

Agent success rate when using this tile

80%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.48x

Baseline

Agent success rate without this tile

54%

rubric.jsonevals/scenario-10/

{
  "context": "This evaluation assesses how well the engineer uses React's Context API, specifically the useContext hook along with createContext and Provider, to implement a theme management system. The focus is on proper context creation, provision, and consumption.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Context Creation",
      "description": "Uses React.createContext() to create a context for theme management with appropriate TypeScript typing (ThemeContextValue or similar)",
      "max_score": 20
    },
    {
      "name": "Provider Implementation",
      "description": "Implements a ThemeProvider component that uses the Context.Provider component to wrap children and provide theme state and toggle function",
      "max_score": 25
    },
    {
      "name": "useContext Hook Usage",
      "description": "Uses the useContext() hook in ThemeDisplay and ThemeToggleButton components to consume the theme context value",
      "max_score": 30
    },
    {
      "name": "State Management",
      "description": "Uses useState() hook within the ThemeProvider to manage the current theme state and properly updates it via the toggleTheme function",
      "max_score": 15
    },
    {
      "name": "Context Value Shape",
      "description": "Provides a context value object containing both the current theme and toggleTheme function, matching the ThemeContextValue interface specification",
      "max_score": 10
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@types/react@19.1.x
tile.json