search not working in react mdbdatatable for link code example

Example: search not working in react mdbdatatable for link

import React from 'react';
import { MDBDataTable } from 'mdbreact';

const DatatablePage = () => {
  const data = {
    columns: [
      {
        label: 'Name',
        field: 'name',
        sort: 'asc',
        width: 150
      },
      {
        label: 'Position',
        field: 'position',
        sort: 'asc',
        width: 270
      },
      {
        label: 'Office',
        field: 'office',
        sort: 'asc',
        width: 200
      },
      {
        label: 'Random Word',
        field: 'random',
        sort: 'asc',
        width: 50
      }
    ],
    rows: [
      {
        name: 'Tiger Nixon',
        position: 'System Architect',
        office: 'Edinburgh',
        random: 
tourist narrow
}, { name: 'Garrett Winters', position: 'Accountant', office: 'Tokyo', random:
expression popular
}, { name: 'Ashton Cox', position: 'Junior Technical Author', office: 'San Francisco', random:
rule estimate
}, { name: 'Cedric Kelly', position: 'Senior Javascript Developer', office: 'Edinburgh', random:
announcement preparation
}, { name: 'Airi Satou', position: 'Accountant', office: 'Tokyo', random:
preoccupation stock
} ] }; return ( ); } export default DatatablePage;

Tags:

Misc Example