javascript - How do I clone React component DOM nodes? -


I have a feedback component where I am trying to render an Excel-like grid with a fixed header and I'm deciding the first column. Desired behavior:

  • Scroll left & amp; Right: The second column remains in place while others column scrolls along the header row
  • scroll up & amp; Bottom: Scroll through all columns & amp;

Existing techniques that work for this clone, in another table, are more inlaid in the existing table - this allows the table to behave as usual and only X & Amp; The need for adjusting the Wi-off of a fixed device is required, for example:

How do I create it with React?

So far I have something like this:

  var grid = React.createClass ({RenderRow: function (line, i) {return ( div className = "grid" ref = "grid"> 
Gt; {this.props.rows.map (this.renderRow)} );}}); & lt; / div & gt;

I was thinking that I have and and & lt; Fixed column / & gt; There will be components where the above comment is, but I'm not sure how I should go to clone the dom nodes of the rows. The reason for cloning is to match them in attributes, dimensions etc. Any ideas about this?


Comments