mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
parent
33f692c272
commit
7ec809b222
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user