Skip to content

Commit

Permalink
6.5.5 (#664)
Browse files Browse the repository at this point in the history
* use || instead of ??

* 6.5.5
  • Loading branch information
bokuweb authored Aug 28, 2020
1 parent a862770 commit 854dd18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "re-resizable",
"version": "6.5.4",
"version": "6.5.5",
"description": "Resizable component for React.",
"title": "re-resizable",
"main": "./lib/index.es5.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ export class Resizable extends React.PureComponent<ResizableProps, State> {
style.flexBasis = this.state.flexBasis;
}

const Wrapper = this.props.as ?? 'div';
const Wrapper = this.props.as || 'div';

return (
<Wrapper ref={this.ref} style={style} className={this.props.className} {...extendsProps}>
Expand Down

0 comments on commit 854dd18

Please sign in to comment.