Skip to content

Commit 9462201

Browse files
bannierlpil
authored andcommitted
update PropTypes import in react snippets
Since react 15.05, PropTypes belongs to the `prop-types` package.
1 parent aab8f82 commit 9462201

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snippets/javascript.es6.react.snippets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ snippet ri1
44

55
# Import both React and Component
66
snippet ri2
7-
import React, { Component, PropTypes } from 'react'
7+
import React, { Component } from 'react'
8+
import PropTypes from 'prop-types'
89

910
# React class
1011
snippet rcla

0 commit comments

Comments
 (0)