function ES2015() { class C extends React.Component { // $ threatModelSource=view-component-input } // $ reactComponent C.defaultProps = { propFromDefaultProps: "propFromDefaultProps" }; // $ getACandidatePropsValue (); // $ getACandidatePropsValue new C({propFromConstructor: "propFromConstructor"}); // $ getACandidatePropsValue } function ES5() { var C = React.createClass({ getDefaultProps() { return { propFromDefaultProps: "propFromDefaultProps" }; // $ getACandidatePropsValue } }); // $ reactComponent (); // $ getACandidatePropsValue C({propFromConstructor: "propFromConstructor"}); // $ getACandidatePropsValue } function Functional() { function C(props) { // $ threatModelSource=view-component-input return
; } // $ reactComponent C.defaultProps = { propFromDefaultProps: "propFromDefaultProps" }; // $ getACandidatePropsValue (); // $ getACandidatePropsValue new C({propFromConstructor: "propFromConstructor"}); // $ getACandidatePropsValue }