Created
February 8, 2024 10:02
-
-
Save mrcthms/80ef76821df6d871ca1f37987fbff0cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MyComponent() { | |
return null; | |
} | |
function MySettingsList() { | |
return ( | |
<SettingsList action={{ content: 'Click me' }}> | |
<MyComponent /> | |
</SettingsList> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MySettingsList here will render a dividing line before the action, as it assumes that MyComponent returns a truthy value and has no way of knowing whether it returns null