Skip to content

Commit 569bc5a

Browse files
committed
Merge pull request react-bootstrap#1019 from react-bootstrap/factory-deprecation
[changed] Add deprecation warning that factories will be removed
2 parents 45909a2 + fbf9ed6 commit 569bc5a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/templates/factory.index.js.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import <%= component %> from './<%= component %>';
33
<% }); %>
44

5+
console.warn('Support for factories will be removed in v0.25, for details see https://github.com/react-bootstrap/react-bootstrap/issues/825');
6+
57
export default {
68
<% _.forEach(components, function (component) { %>
79
<%= component %>,

src/templates/factory.js.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React from 'react';
22
import <%= name %> from '../<%= name %>';
33

4+
console.warn('Support for factories will be removed in v0.25, for details see https://github.com/react-bootstrap/react-bootstrap/issues/825');
5+
46
export default React.createFactory(<%= name %>);

0 commit comments

Comments
 (0)