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 displays a loading indicator during a data fetch operation that takes approximately 5 seconds to complete.
Create a DataFetcher component that:
The simulated fetch should take approximately 5 seconds using setTimeout.
The loading indicator should:
@generates
import React from "react";
/**
* A component that demonstrates a loading indicator during a data fetch operation.
*
* Fetches data when the user clicks a button, displaying a top-loading bar
* that updates smoothly during the fetch process.
*/
export default function DataFetcher(): JSX.Element;Provides a customizable top-loading bar component with automatic progress animation capabilities.
@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