mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
JSX conditional rendering can be simplified to use the logical AND operator (&&) [1] instead of ternary operator (? :) if we want to render something only when the conditon is true, and nothing otherwise. [1]: https://react.dev/learn/conditional-rendering#logical-and-operator- Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>