🚀
Zero Configuration
Just import and use. No complex setup or configuration needed.
Automatically improve your React app's performance with minimal code changes
# Install using your preferred package manager
pnpm add @zenreact/core
import { withOptimization } from '@zenreact/core';
function MyComponent({ data }) {
return (
<div>
<h1>{data.title}</h1>
<p>{data.content}</p>
</div>
);
}
// That's it! Now your component is optimized
export default withOptimization(MyComponent);
import { useOptimizedState } from '@zenreact/core';
function SearchBox() {
// Automatically debounces search input
const [search, setSearch] = useOptimizedState('');
return <input value={search} onChange={(e) => setSearch(e.target.value)} />;
}
Get started now with our comprehensive guide, or check out our API reference for detailed documentation.