Good day to all, is there a possibility in react.js to get the style of the parent component, for example: Parent component:
class App extends React.Component { render() { return ( <div> <div id="myField"> <MyComponent /> </div> </div> ) } } Child component:
class MyComponent extends React.Component { render() { return ( <svg width="100%" height="100%"> </svg> ) } } In this situation, I would like to get the CSS style (namely, width and height) of the div "myField". Is it possible? Thank you in advance.