Hello dear developers.
I am trying to create my own component for REACT, but I get an error when creating the component
I used the instructions for creating components from here https://smartclient.com/smartclient-.....reactSupport
my component
	my index.js
	the error that comes out
	
							
						
					I am trying to create my own component for REACT, but I get an error when creating the component
I used the instructions for creating components from here https://smartclient.com/smartclient-.....reactSupport
my component
Code:
	
	import React from 'react';
import { Button, ReactComponent } from 'smartclient-lgpl/react';
class SaveButton extends Button {
    static ISC_CLASS_NAME = "SaveButton";
    static IS_CLASS = true;
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <Button title="Save.." />
        );
    }
}
ReactComponent.registerClass("SaveButton", SaveButton);
export default SaveButton;
Code:
	
	import React from 'react';
import ReactDOM from 'react-dom/client';
import 'smartclient-lgpl/release';
import SaveButton from "./SaveButton";
const root = ReactDOM.createRoot(document.getElementById('app'));
root.render(
  <SaveButton />
);
Code:
	
	Cannot read properties of undefined (reading 'create') TypeError: Cannot read properties of undefined (reading 'create') at SaveButton.__createSCInstance (http://localhost:3000/static/js/bundle.js:40176:27) at SaveButton._createSCInstance (http://localhost:3000/static/js/bundle.js:40164:23) at SaveButton.componentDidMount (http://localhost:3000/static/js/bundle.js:40102:10) at commitLayoutEffectOnFiber (http://localhost:3000/static/js/bundle.js:68025:34) at commitLayoutMountEffects_complete (http://localhost:3000/static/js/bundle.js:69192:13) at commitLayoutEffects_begin (http://localhost:3000/static/js/bundle.js:69181:11) at commitLayoutEffects (http://localhost:3000/static/js/bundle.js:69127:7) at commitRootImpl (http://localhost:3000/static/js/bundle.js:71036:9) at commitRoot (http://localhost:3000/static/js/bundle.js:70916:9) at finishConcurrentRender (http://localhost:3000/static/js/bundle.js:70313:13) at performConcurrentWorkOnRoot (http://localhost:3000/static/js/bundle.js:70164:11) at workLoop (http://localhost:3000/static/js/bundle.js:78113:38) at flushWork (http://localhost:3000/static/js/bundle.js:78091:18) at MessagePort.performWorkUntilDeadline (http://localhost:3000/static/js/bundle.js:78328:25)
Comment