- {rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map(row => {
- return (
-
-
- {row.name}
-
- {row.calories}
- {row.fat}
-
- );
- })}
+ {rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map(row => (
+
+
+ {row.name}
+
+ {row.calories}
+ {row.fat}
+
+ ))}
{emptyRows > 0 && (
diff --git a/docs/src/pages/demos/tables/CustomizedTable.js b/docs/src/pages/demos/tables/CustomizedTable.js
index c192eb73c3e53d..84482b0f145812 100644
--- a/docs/src/pages/demos/tables/CustomizedTable.js
+++ b/docs/src/pages/demos/tables/CustomizedTable.js
@@ -64,19 +64,17 @@ function CustomizedTable(props) {
- {rows.map(row => {
- return (
-
-
- {row.name}
-
- {row.calories}
- {row.fat}
- {row.carbs}
- {row.protein}
-
- );
- })}
+ {rows.map(row => (
+
+
+ {row.name}
+
+ {row.calories}
+ {row.fat}
+ {row.carbs}
+ {row.protein}
+
+ ))}
diff --git a/docs/src/pages/demos/tables/EnhancedTable.hooks.js b/docs/src/pages/demos/tables/EnhancedTable.hooks.js
index 2c23e1fbe06e0a..fe6ed7ccbc4297 100644
--- a/docs/src/pages/demos/tables/EnhancedTable.hooks.js
+++ b/docs/src/pages/demos/tables/EnhancedTable.hooks.js
@@ -73,8 +73,8 @@ function EnhancedTableHead(props) {
onChange={onSelectAllClick}
/>
- {rows.map(row => {
- return (
+ {rows.map(
+ row => (
- );
- }, this)}
+ ),
+ this,
+ )}
);
diff --git a/docs/src/pages/demos/tables/EnhancedTable.js b/docs/src/pages/demos/tables/EnhancedTable.js
index 8d309cfbcdcfb8..0ed079d1b5241c 100644
--- a/docs/src/pages/demos/tables/EnhancedTable.js
+++ b/docs/src/pages/demos/tables/EnhancedTable.js
@@ -75,8 +75,8 @@ class EnhancedTableHead extends React.Component {
onChange={onSelectAllClick}
/>
- {rows.map(row => {
- return (
+ {rows.map(
+ row => (
- );
- }, this)}
+ ),
+ this,
+ )}
);
diff --git a/docs/src/pages/demos/tables/SimpleTable.js b/docs/src/pages/demos/tables/SimpleTable.js
index d1eedba33461fa..a3c0ede6806a72 100644
--- a/docs/src/pages/demos/tables/SimpleTable.js
+++ b/docs/src/pages/demos/tables/SimpleTable.js
@@ -49,19 +49,17 @@ function SimpleTable(props) {
- {rows.map(row => {
- return (
-
-
- {row.name}
-
- {row.calories}
- {row.fat}
- {row.carbs}
- {row.protein}
-
- );
- })}
+ {rows.map(row => (
+
+
+ {row.name}
+
+ {row.calories}
+ {row.fat}
+ {row.carbs}
+ {row.protein}
+
+ ))}