React Fixed Column Table code without external library
Hello everyone ,today we are going to implement tableview with fixed column without using any external library. So let's start : I have initiated a react project and created two files, FixedColumnTable.js for logic and FixedColumnTable.css for holding styles. And called the same component in project's App.js FixedColumnTable.js import React, { Component } from 'react' import './FixedColumnTable.css' class FixedCoulmnTable extends Component { constructor(props) { super (props) this .state = { fixedHeaders : this .props.headers.slice( 0 , this .props.frozen), regularHeaders : this .props.headers.slice( this .props.frozen, this .props.headers.length) } } componentDidMount(){ console.log( this .props.headers.slice( 0 , this .props.frozen)) console.log( this .props.headers.slice( this .props.frozen, this .props.headers.length)) } addTd = (arr) =>{ return ...