You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The react-addons-create-fragment npm package (v15.5.2) is not exporting the createReactFragment() function as intended. Instead it is exporting a function that returns the createReactFragment().
To reproduce:
varcreateFragment=require('react-addons-create-fragment');varHello=React.createClass({var fragment =createFragment({hello: <span>Hello</span>,world: <span>World</span>};render: function(){return<div>{fragment}</div>;}});ReactDOM.render(<Hello/>,document.getElementById('container'));// Actual render: <div></div>// Expected render: <div><span>Hello</span><span>World</span></div>
Note that the React.addons.createFragment that comes with react-with-addons.js is working as expected. This bug only affects the npm package.
The text was updated successfully, but these errors were encountered:
The react-addons-create-fragment npm package (v15.5.2) is not exporting the
createReactFragment()
function as intended. Instead it is exporting a function that returns thecreateReactFragment()
.To reproduce:
Note that the
React.addons.createFragment
that comes withreact-with-addons.js
is working as expected. This bug only affects the npm package.The text was updated successfully, but these errors were encountered: