From 9c7b1e3313deeca0f4d829906f5f116fa8c42d6b Mon Sep 17 00:00:00 2001 From: Nattasit Moonchanabaht <33336824+boatnoodle@users.noreply.github.com> Date: Sun, 13 Oct 2019 05:25:33 +0700 Subject: [PATCH] :recycle: Refactor code (#1588) --- examples/absolute-layout/src/App.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/absolute-layout/src/App.js b/examples/absolute-layout/src/App.js index 4538427..5036a4c 100644 --- a/examples/absolute-layout/src/App.js +++ b/examples/absolute-layout/src/App.js @@ -96,13 +96,11 @@ function Table({ columns, data }) { (row, i) => prepareRow(row) || (
- {row.cells.map(cell => { - return ( -
- {cell.render('Cell')} -
- ) - })} + {row.cells.map((cell,index) => ( +
+ {cell.render('Cell')} +
+ ))}
) )}