How to use the findDOMNode function from react

Find comprehensive JavaScript react.findDOMNode code examples handpicked from public code repositorys.

98
99
100
101
102
103
104
105
106
107
},
handleResize: function() {
        this.update(this.getTableWidth());
},
getTableWidth: function() {
        var n = React.findDOMNode(this.refs.table);
        var w = window.innerWidth - n.offsetLeft;
        return { tableWidth: w };
},
componentDidMount: function() {
fork icon26
star icon365
watch icon19

+ 7 other calls in file

264
265
266
267
268
269
270
271
272
273
    </SafeAnchor>
  );
},

clearExample() {
  const mountNode = React.findDOMNode(this.refs.mount);
  try {
    React.unmountComponentAtNode(mountNode);
  } catch (e) {
    console.error(e); // eslint-disable-line no-console
fork icon0
star icon1
watch icon0