Skip to content

Commit

Permalink
fix(react): removed warning for deprecated defaultProps (#248)
Browse files Browse the repository at this point in the history
* fix(react): Warning for deprecated defaultProps

Fixes #180

* Create late-icons-sit.md

---------

Co-authored-by: Nikolay Kost <[email protected]>
  • Loading branch information
GetPastTheMonkey and JiLiZART authored Aug 21, 2024
1 parent 934d88a commit 27c8c4b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .changeset/late-icons-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@bbob/cli": patch
"@bbob/core": patch
"@bbob/html": patch
"@bbob/parser": patch
"@bbob/plugin-helper": patch
"@bbob/preset-html5": patch
"@bbob/preset-react": patch
"@bbob/preset-vue": patch
"@bbob/preset": patch
"@bbob/react": patch
"@bbob/types": patch
"@bbob/vue2": patch
"@bbob/vue3": patch
---

Removed `defaultProps` and
Warning for deprecated defaultProps
7 changes: 0 additions & 7 deletions packages/bbob-react/src/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,4 @@ const Component = ({
content(children, plugins, options),
);

Component.defaultProps = {
container: 'span',
plugins: [],
options: {},
componentProps: {},
};

export default Component;

0 comments on commit 27c8c4b

Please sign in to comment.