From 91bbf85cd925a8c039d1bc14103cea9f8cd45007 Mon Sep 17 00:00:00 2001 From: Joshua Comeau Date: Tue, 5 Sep 2017 07:25:49 -0400 Subject: [PATCH 1/2] Update peerDependency to support modern ReactDOM --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1835130..e7c0230 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "author": "", "license": "MIT", "peerDependencies": { - "react-dom": "^0.14.7" + "react-dom": "^0.14.7 || 15.x || 16.x" }, "devDependencies": { "babel-cli": "^6.4.5", From cda89832775f5ee31532965c60c97f1ce836c4dc Mon Sep 17 00:00:00 2001 From: Joshua Comeau Date: Tue, 5 Sep 2017 07:29:13 -0400 Subject: [PATCH 2/2] Use PropTypes in README example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec88132..f62b7e2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,8 @@ In the [example](https://github.com/haradakunihiko/react-confirm/tree/master/exa ### create confirmable component ```js -import React, {PropTypes} from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import { confirmable } from 'react-confirm'; import Dialog from 'any-dialog-library'; // your choice.