/react-19:preloading-resourcesfrom react-19
Teaches resource preloading APIs in React 19 including prefetchDNS, preconnect, preload, and preinit. Use when optimizing initial load or navigation performance.
Ships in react-19. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
React 19 adds functions for optimizing resource loading.
import { prefetchDNS, preconnect, preload, preinit } from 'react-dom';
Perform DNS resolution early:
function App() {
prefetchDNS('https://api.example.com');
prefetchDNS('https://cdn.example.com');
return <div>App content</div>;
}
Establish connection before needed:
function App() {
preconnect('https://api.example.com');
return <div>App content</div>;
}
Preload resources without executing:
function App() {
preload('/font.woff2', { as: 'font', type: 'font/woff2', crossOrigin: 'anonymous' });
preload('/hero-image.jpg', { as: 'image' });
preload('/critical.css', { as: 'style' });
return <div>App content</div>;
}
Preload and execute resource:
function App() {
preinit('/critical.js', { as: 'script' });
preinit('/critical.css', { as: 'style', precedence: 'high' });
return <div>App content</div>;
}
On Route Hover:
function NavLink({ to, children }) {
const handleMouseEnter = () => {
preload(`/api/data${to}`, { as: 'fetch' });
preinit(`/routes${to}.js`, { as: 'script' });
};
return (
<Link to={to} onMouseEnter={handleMouseEnter}>
{children}
</Link>
);
}
For comprehensive preloading documentation, see: research/react-19-comprehensive.md lines 811-834.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub djankies/claude-configs --plugin react-1926 skills in this plugin
/composing-componentsTeaches component composition patterns in React 19 including children prop, compound components, and render props. Use when designing component APIs, creating reusable components, or avoiding prop drilling./following-the-rules-of-hooksFix React Rules of Hooks violations - conditional calls, hooks in loops/callbacks/classes/implementing-code-splittingTeaches code splitting with lazy() and Suspense in React 19 for reducing initial bundle size. Use when implementing lazy loading, route-based splitting, or optimizing performance.Other plugins' skills for the same job