diff --git a/src/templates/factory.index.js.template b/src/templates/factory.index.js.template index de68c1c23e..baaeb1ef02 100644 --- a/src/templates/factory.index.js.template +++ b/src/templates/factory.index.js.template @@ -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 %>, diff --git a/src/templates/factory.js.template b/src/templates/factory.js.template index d89a79c954..051dbd144e 100644 --- a/src/templates/factory.js.template +++ b/src/templates/factory.js.template @@ -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 %>);