diff --git a/.gitignore b/.gitignore index 2490e10..5d3307b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # package artifacts node_modules/ -.next/ +**/.next/ dist/ coverage/ test-results/ diff --git a/examples/demo/src/app/(test)/ReactState.tsx b/examples/demo/src/app/(test)/ReactState.tsx index 2c2c287..0cbbea4 100644 --- a/examples/demo/src/app/(test)/ReactState.tsx +++ b/examples/demo/src/app/(test)/ReactState.tsx @@ -47,9 +47,14 @@ function Header({ theme }: { theme: 'light' | 'dark' }) {
Reactive state management with React
+
+ Reactive state management with React
+ Re-renders O(n)
+
✨ This panel slides open and has to re-render!
+✨ This panel slides open and has to re-render!
- Reactive state without re-rendering OR prop drilling.
+ Reactive state without re-rendering .
Zero re-renders,{' '}
Reactive &{' '}
@@ -112,15 +112,15 @@ function InteractiveCard({ toggleMenu }: { toggleMenu: () => void }) {
aria-label="button"
onClick={toggleMenu}
className="accent-violet:bg-violet-500 accent-emerald:bg-emerald-500 accent-amber:bg-amber-500 w-full rounded-lg py-3 font-medium text-white hover:scale-[1.02]">
- Close Panel
- Open Panel
+ Close Panel
+ Open Panel
✨ This panel slides open without re-rendering!
+✨ This panel slides open without re-rendering!