File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import PropTypes from "prop-types" ;
23import OptimizeContext from "./OptimizeContext" ;
34
45class Experiment extends React . Component {
56 static defaultProps = {
67 loader : null
78 } ;
89
10+ static propTypes = {
11+ id : PropTypes . string . isRequired ,
12+ loader : PropTypes . node ,
13+ children : PropTypes . node
14+ } ;
15+
916 state = {
1017 variant : null
1118 } ;
Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import PropTypes from "prop-types" ;
23import OptimizeContext from "./OptimizeContext" ;
34
45class Variant extends React . Component {
6+ static propTypes = {
7+ id : PropTypes . string . isRequired ,
8+ children : PropTypes . node
9+ } ;
10+
511 render ( ) {
612 return (
713 < OptimizeContext . Consumer >
You can’t perform that action at this time.
0 commit comments