Update overview.mdx

This commit is contained in:
James Mikrut
2021-10-21 09:27:42 -04:00
committed by GitHub
parent badbdca351
commit 935a483eaa

View File

@@ -162,7 +162,7 @@ The `condition` function should return a boolean that will control if the field
If you are building custom components, and you'd like for your custom components to support conditional logic as well, you can utilize Payload's `withCondition` higher-order function by importing it and using it as follows:
```
```js
import { withCondition } from 'payload/components/forms';
const CustomComponent = () => {