mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
parent
33f692c272
commit
7ec809b222
@ -15,6 +15,10 @@ type TargetElement =
|
|||||||
|
|
||||||
type RenderFunc = () => JSX.Element;
|
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 = ({
|
export const ConditionallyRender = ({
|
||||||
condition,
|
condition,
|
||||||
show,
|
show,
|
||||||
|
Loading…
Reference in New Issue
Block a user