import * as React from 'react';
import * as $ from 'jquery';
export class SimpleDiv extends React.Component{
    myRef;
    constructor(props){
        super(props);
        this.myRef = React.createRef();
    }
    render(){
        return <div style={{margin: '10px',
        border: '5px solid pink'}}>
            <div style={{padding: '10px'}} id='divId' ref={this.myRef}>
        </div></div>;
    }
    getOffset(){
        //throw 'Invoked offset';
        let element = $(this.myRef.current);
        return JSON.stringify(element.offset());
    }
} 