Skip to content

Commit

Permalink
[changed] Add deprecation warning that factories will be removed
Browse files Browse the repository at this point in the history
For details see react-bootstrap#825
  • Loading branch information
mtscout6 committed Jul 19, 2015
1 parent 45909a2 commit fbf9ed6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/templates/factory.index.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import <%= component %> from './<%= component %>';
<% }); %>

console.warn('Support for factories will be removed in v0.25, for details see https://github.com/react-bootstrap/react-bootstrap/issues/825');

export default {
<% _.forEach(components, function (component) { %>
<%= component %>,
Expand Down
2 changes: 2 additions & 0 deletions src/templates/factory.js.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from 'react';
import <%= name %> from '../<%= name %>';

console.warn('Support for factories will be removed in v0.25, for details see https://github.com/react-bootstrap/react-bootstrap/issues/825');

export default React.createFactory(<%= name %>);

0 comments on commit fbf9ed6

Please sign in to comment.