This repository was archived by the owner on Nov 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 33## 1.1.1
44* Remove ` react-addons-create-fragment ` dependency, use ` cloneElement ` to specify a key manually instead.
55* Bump to allow for React ^16.0.0
6+ * Drop deprecated React.createClass, React.DOM from test
67
78## 1.1.0
89* Update to Babel 6 and bump node testing version to 5.11.1
Original file line number Diff line number Diff line change @@ -11,16 +11,13 @@ import React from 'react';
1111import interpolateComponents from '../src/index' ;
1212
1313describe ( 'interpolate-components' , ( ) => {
14- const input = React . DOM . input ( ) ;
15- const div = React . DOM . div ( ) ;
14+ const input = < input /> ;
15+ const div = < div /> ;
1616 const link = < a href = "#" /> ;
1717 const em = < em /> ;
18- const CustomComponentClass = React . createClass ( {
19- displayName : 'CustomComponentClass' ,
20- render ( ) {
21- return < span className = "special" > { this . props . intro } { this . props . children } </ span > ;
22- }
23- } ) ;
18+ const CustomComponentClass = ( { children, intro } ) => (
19+ < span className = "special" > { intro } { children } </ span >
20+ ) ;
2421
2522 describe ( 'with default container' , ( ) => {
2623 it ( 'should return a react object with a span container' , ( ) => {
You can’t perform that action at this time.
0 commit comments