storybook-native still uses import React, { Component, PropTypes } from 'react';
which does not work anymore in react 16.0.0.beta.x
it should use package prop-types
Given that we don't specify a react dependency version, I'd like to look towards @kentcdodds's solution for this glamorous, https://github.com/paypal/glamorous/commit/14970c1bb59d1408d3066d209dafa356b5ce3173.
Essentially - use prop-types if they exist and React is of a certain version, otherwise use React.PropTypes.
I think the right move is to continue to be flexible with the React version, since as a tool, we don't necessarily want to enforce requirements onto the projects using the tool.
@ajwhite that's true, but i want to highlight that the prop-types package work with react 14, 15 and 16: https://www.npmjs.com/package/prop-types
React.version.slice(0, 4) === '15.5'
Looks like this will warn in 15.6 and break in 16
@ajwhite why complicate things? Shouldn't we just move to prop-types and be done with it?
but i want to highlight that the prop-types package work with react 14, 15 and 16
Given @macrozone's findings -- sounds like we can move over without a problem on the compatibility fronts 馃憤
FWIW, I've considered moving glamorous to _just_ use prop-types...
https://github.com/storybooks/storybook/pull/1674 we've moved everything over.
Most helpful comment
FWIW, I've considered moving glamorous to _just_ use
prop-types...