Import React without wildcard
authorFrank Bessou <frank.bessou@logilab.fr>
Wed, 10 May 2017 11:18:41 +0200
changeset 201 f155ec3bc4b9
parent 200 024c7f53a589
child 202 b7c989c00d57
Import React without wildcard It avoids loading the whole library and would lead to remove the PropTypes warning in console if react-jsonschema-form was not triggering it.
src/components/Resource.js
--- a/src/components/Resource.js	Thu May 11 17:42:52 2017 +0200
+++ b/src/components/Resource.js	Wed May 10 11:18:41 2017 +0200
@@ -1,4 +1,4 @@
-import * as React from 'react';
+import React from 'react';
 import hypermediaClient from '../services/hypermedia';
 import {PropTypes} from 'prop-types';
 import {merge} from 'lodash/object';