We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e889fb + 881633c commit 27024d8Copy full SHA for 27024d8
examples/js/custom/pagination/fully-custom-size-per-page.js
@@ -29,10 +29,10 @@ export default class FullyCustomSizePerPageDropDown extends React.Component {
29
return (
30
<div className='btn-group'>
31
{
32
- [ 10, 25, 30 ].map(n => {
+ [ 10, 25, 30 ].map((n, idx) => {
33
const isActive = (n === props.currSizePerPage) ? 'active' : null;
34
35
- <button type='button' className={ `btn btn-info ${isActive}` } onClick={ () => props.changeSizePerPage(n) }>{ n }</button>
+ <button key={ idx } type='button' className={ `btn btn-info ${isActive}` } onClick={ () => props.changeSizePerPage(n) }>{ n }</button>
36
);
37
})
38
}
0 commit comments