how to get code suggestions for react components you make from proptypes code example
Example: how to get code suggestions for react components
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import UiStore from './store';
export default class DeviceMirror extends Component {
static propTypes = {
uiStore: PropTypes.instanceOf(UiStore),
}
constructor(props) {
super(props);
this.s = props.uiStore.str;
}
render() {
const { uiStore } = this.props;
return <p>{uiStore.str}</p>;
}
}