Skip to content

Commit 29b8416

Browse files
committed
feat: update to react 18
1 parent 4c04b52 commit 29b8416

File tree

6 files changed

+2174
-4673
lines changed

6 files changed

+2174
-4673
lines changed

lib/ReactTabulator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ var ReactTabulator = function (props) {
101101
}, []);
102102
React.useEffect(function () {
103103
// console.log('useEffect - props.data changed');
104-
if (instanceRef && instanceRef.current) {
105-
initTabulator(); // re-init table
104+
if (instanceRef === null || instanceRef === void 0 ? void 0 : instanceRef.current) {
105+
initTabulator();
106106
}
107107
}, [props.data]);
108108
return React.createElement("div", __assign({ ref: ref, "data-instance": mainId }, htmlProps, { className: props.className }));

nwb.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
extensions: ['.ts', '.tsx', '.js', '.jsx']
1111
},
1212
module: {
13-
rules: [{ test: /\.(ts|tsx?)$/, loader: 'awesome-typescript-loader' }]
13+
rules: [{ test: /\.(ts|tsx?)$/, loader: 'ts-loader' }]
1414
}
1515
},
1616
html: {

0 commit comments

Comments
 (0)