Check out example codes for "how to go back to the same page in data table after refreshing". It will help you in understanding the concepts better.

Code Example 1

$(document).ready(function() {
    $('#example').dataTable( {
        "bStateSave": true,
        "fnStateSave": function (oSettings, oData) {
            localStorage.setItem( 'DataTables', JSON.stringify(oData) );
        },
        "fnStateLoad": function (oSettings) {
            return JSON.parse( localStorage.getItem('DataTables') );
        }
    } );
} );

Learn ReactJs, React Native from akashmittal.com