From 47bcb9f8cd55400841ca51ffb43e35b7397a131d Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Mon, 9 Nov 2026 10:12:14 +0900 Subject: [PATCH] =?UTF-8?q?261109=5F01=5FENH:=20React=20=EC=8A=A4=ED=83=9D?= =?UTF-8?q?=EC=97=90=20=EC=A4=91=EC=B2=A9=20=EC=82=BC=ED=95=AD=20=EC=97=B0?= =?UTF-8?q?=EC=82=B0=EC=9E=90=20=EA=B8=88=EC=A7=80=20=EA=B7=9C=EC=B9=99=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- sources/stacks/react.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/stacks/react.md b/sources/stacks/react.md index 5c7710e..05763a0 100644 --- a/sources/stacks/react.md +++ b/sources/stacks/react.md @@ -3,6 +3,7 @@ - Treat the current React version, component style, state management, routing, styling, and test approach as authoritative. - Do not perform unrelated class-to-hook, JavaScript-to-TypeScript, state-library, styling-system, or React-to-Next.js migrations. - Keep components focused and follow the repository's established split between presentation, state, data access, and side effects. +- Do not use nested ternary expressions. Use clear `if`/`else` branches, early returns, or well-named intermediate variables instead; a single, non-nested ternary is acceptable only when it remains immediately readable. - Keep effects dependency-correct and clean up subscriptions, timers, listeners, and in-flight work where applicable. - Use stable semantic keys and preserve accessibility, loading, empty, error, disabled, and success states. - Preserve public component props and shared UI contracts unless a coordinated breaking change is explicitly approved.