react js getting error when i use serverside datatable

by Nikul Panchal   Last Updated April 15, 2019 11:26 AM

I am working on react js server side datatable, for that i have used this library https://github.com/kenforthewin/react-redux-datatable, when i run the program it gives me this error

./src/Table.js
  Line 9:  'persistCombineReducers' is not defined  no-undef
  Line 9:  'config' is not defined                  no-undef

Search for the keywords to learn more about each error.

Can anyone please help me why i am getting that error ? I have added my whole code here

import React, { Component } from 'react';
import { Button, Table } from 'react-bootstrap';
import ReactDOM from 'react-dom';
import './App.css';
import reducers from './reducers'
import { dataTableReducer } from './redux-remote-datatable';
import { DataTableRedux as DataTable } from './redux-remote-datatable';

const appReducer = persistCombineReducers(config, {
  dataTableReducer,
});



class TableData extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      error: null,
      isLoaded: false,
      items: [],
      CustomComponent: null
    };
  }

  render() {
    return (
      <DataTable
        fields={{ "id": "id","first_name": "first_name","last_name": "last_name"}}
        ajax="https://reqres.in/api/users?page=2"
        idField="id" />
    )
  }
}
export default TableData;
Tags : reactjs redux


Related Questions





how can i pass data inside redux-saga to state?

Updated June 11, 2019 23:26 PM

Debounce API call in redux

Updated October 17, 2016 09:11 AM