Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1019 from react-bootstrap/factory-…
Browse files Browse the repository at this point in the history
…deprecation

[changed] Add deprecation warning that factories will be removed
  • Loading branch information
AlexKVal committed Jul 19, 2015
2 parents 45909a2 + fbf9ed6 commit 569bc5a
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 569bc5a

Please sign in to comment.