Is it possible to show ArgsTable when React component returns null? #15857
Answered
by
shilman
marexandre
asked this question in
Help
-
Using storybook React component code looks something like this: import coolLib from 'cool-lib';
export default function MyComponent({ id }) {
useEffect(() => {
const lib = new coolLib({ id });
lib.on('load', () => {
// do stuff
});
return () => {
coolLib.remove()
}
}, []);
return null;
}
MyComponent.propTypes = {
id: PropTypes.string.isRequired
} That |
Beta Was this translation helpful? Give feedback.
Answered by
shilman
Aug 20, 2021
Replies: 1 comment
-
We use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
marexandre
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use
react-docgen
to generate the table, so your best bet is to see whether it support this option!