tj / consolidate.js

Template engine consolidation library for node.js
3.48k stars 357 forks source link

Fix React deprecation warning in test #306

Closed TheDancingCode closed 6 years ago

TheDancingCode commented 6 years ago

React emitted this deprecation warning while running the tests:

Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

I replaced React.createClass with a plain javascript class in the fixture to future-proof your tests.

doowb commented 6 years ago

Thanks @TheDancingCode!

I'll review this weekend.