Skip to content

Commit fbf9ed6

Browse files
committed
[changed] Add deprecation warning that factories will be removed
For details see react-bootstrap#825
1 parent 45909a2 commit fbf9ed6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/templates/factory.index.js.template

+2
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

+2
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)