1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

refactor: deprecate ConditionallyRender (#8047)

yeet 🎉
This commit is contained in:
Tymoteusz Czech 2024-09-02 15:52:49 +02:00 committed by GitHub
parent 33f692c272
commit 7ec809b222
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,10 @@ type TargetElement =
type RenderFunc = () => JSX.Element;
/**
* @deprecated Use a ternary operator (`condition ? show : elseShow`)
* @see https://docs.getunleash.io/contributing/ADRs/front-end/jsx-conditionals
*/
export const ConditionallyRender = ({
condition,
show,