Closed mjackson closed 8 years ago
The <Prompt when> prop makes the prompt active only when its value is true. So instead of doing this:
<Prompt when>
true
{condition && <Prompt ...>}
users can do this:
<Prompt when={condition} ...>
and avoid the conditional rendering.
The
<Prompt when>
prop makes the prompt active only when its value istrue
. So instead of doing this:users can do this:
and avoid the conditional rendering.