Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Less strict PropTypes for string placeholders to optionally allow React nodes #655

Merged
merged 1 commit into from
Dec 10, 2015

Conversation

kromit
Copy link
Contributor

@kromit kromit commented Dec 9, 2015

Remove the warning without modifying the functionality by using

React.PropTypes.oneOfType([
     React.PropTypes.string,
    React.PropTypes.node
]) 

instead of

React.PropTypes.string,

…ct nodes

Remove the warning without modifying the functionality by using

    React.PropTypes.oneOfType([
         React.PropTypes.string,
        React.PropTypes.node
    ]) 

instead of 

    React.PropTypes.string,
@alyssaBiasi
Copy link
Contributor

FYI similar to #641

JedWatson added a commit that referenced this pull request Dec 10, 2015
Less strict PropTypes for string placeholders to optionally allow React nodes
@JedWatson JedWatson merged commit 791dea7 into JedWatson:master Dec 10, 2015
@JedWatson
Copy link
Owner

Looks great @kromit, thanks! I'm about to merge #641 as well, @alyssaBiasi :)

@kromit kromit deleted the patch-1 branch December 10, 2015 08:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants