JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/jquery.dataTables.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/css/jquery.dataTables_themeroller.css "></script>
<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/css/jquery.dataTables.css">
<table id="the_table">
    <thead> 
        <tr>
            <th>Year</th>
            <th>Month</th>
            <th>Savings</th>
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>
<br />
<input type="button" value="select the last record" id="btn1" />

JavaScript

the_data = [['1', '1', '1'], ['2', '2', '2'], ['3', '3', '3'], ['4', '4', '4'], ['5', '5', '5'], ['6', '6', '6'], ['7', '7', '7'], ['8', '8', '8'], ['9', '9', '9'], ['A', 'A', 'A'], ['B', 'B', 'B'], ['C', 'C', 'C'], ['D', 'D', 'D'], ['E', 'E', 'E'], ['F', 'F', 'F'], ['G', 'G', 'G'], ['H', 'H', 'H'], ['I', 'I', 'I'], ['J', 'J', 'J'], ['K', 'K', 'K'], ['L', 'L', 'L'], ['M', 'M', 'M'], ['N', 'N', 'N'], ['O', 'O', 'O'], ['P', 'P', 'P']];

    $(document).ready(function () {
        var oTable = $('#the_table').dataTable({
            "aaData": the_data,  
            "bDeferRender": true,
            "aoColumns": [
                { "mData": "Year", "sTitle":"Year" },
                { "mData": "Month", "sTitle":"Month"},
                { "mData": "Savings", "sTitle":"Savings"  },
        ]
        });
        
        function forceRender() {
             var settings = oTable.fnSettings();
             var oldDisplayLength = settings._iDisplayLength;
             settings._iDisplayLength = -1;
             oTable.fnDraw();
             settings._iDisplayLength = oldDisplayLength;
             oTable.fnDraw();
        }
                
        $('#btn1').on('click', function() { 
            //output: 10
            alert($('#the_table').dataTable().fnGetNodes().length);
            //how to do this??
            forceRender();
            //this should now output 25
            alert($('#the_table').dataTable().fnGetNodes().length);
        });

    });