Use react.createElement in example in basic/ according to #2315