react-here-maps
react-here-maps copied to clipboard
Chore: React 16 compatibility
In this PR I have updated some code parts, that broke with React 16.
These are the things I fixed in this PR:
- Added
typingstopackage.json(otherwise TypeScript typings are not recognised in consumer) - Fixed
prepublishOnlynpm script - Added
buildnpm script - Added
react@^16.0.0to peer dependencies - Added
prop-typespackage, becausePropTypeshave been removed in React 16 - Added
reactandreact-domto dev dependencies, because otherwise tests won't work - Use
refinstead ofReactDOM.findDOMNode, because the latter should be avoided and does not work properly in React 16 - Add
yarn.lockfile - Fix issue in tslint config which lead to disallow imports from
react-dom/server
If you want to test the current version with React 16, then you can use @dotcs/[email protected]. I have uploaded the fixed package to this npm repository.