You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the example component below which is very common.
I cannot parse the props.
am i doing something incorrect here?
please copy paste in the playgrounds and try it for yourselves. https://reactcommunity.org/react-docgen/
import React, { Component } from 'react';
interface Props {
/**
* name of person
*/
name: string;
}
class MyComponent<T extends Props> extends Component<T> {
render() {
<p>hello</p>
}
}
export default MyComponent;
I expect to get the props parsed for this component from the interface 'Props' But no props are parsed.
The text was updated successfully, but these errors were encountered:
oygen87
changed the title
Generic class component props not parsed
Typescript generic class component props not parsed
Dec 1, 2021
Consider the example component below which is very common.
I cannot parse the props.
am i doing something incorrect here?
please copy paste in the playgrounds and try it for yourselves. https://reactcommunity.org/react-docgen/
I expect to get the props parsed for this component from the interface 'Props' But no props are parsed.
The text was updated successfully, but these errors were encountered: