A highly customizable React top-loading bar component with hook-based, ref-based, and state-based control patterns.
Agent Success
Agent success rate when using this tile
64%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.25x
Baseline
Agent success rate without this tile
51%
Build a React component that manages application-wide loading states with proper control pattern usage and validation.
You need to create a component called LoadingManager that demonstrates proper usage of a loading bar library's different control patterns.
The component should:
Create the following components:
@generates
import React from 'react';
/**
* LoadingManager - Main component providing context-based loading control
*/
export const LoadingManager: React.FC<{ children: React.ReactNode }>;
/**
* PageContent - Child component demonstrating context-based control
*/
export const PageContent: React.FC;
/**
* DirectControlExample - Component demonstrating ref-based control
*/
export const DirectControlExample: React.FC;Provides a customizable loading bar component with multiple control patterns including ref-based control, state-based control via props, and context-based control via hooks.
@satisfied-by
tessl i tessl/npm-react-top-loading-bar@3.0.0evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10