From 2e496411a387493e87087d90deb4ed5efe3c3417 Mon Sep 17 00:00:00 2001
From: Renard
Date: Wed, 25 Sep 2019 15:33:33 -0300
Subject: Variable destructuring ✨
---
src/App.js | 42 ++++++++++++++++--------------------------
1 file changed, 16 insertions(+), 26 deletions(-)
(limited to 'src/App.js')
diff --git a/src/App.js b/src/App.js
index 399d8a1..a725b29 100644
--- a/src/App.js
+++ b/src/App.js
@@ -61,18 +61,16 @@ class App extends Component {
}
render() {
- if (!this.state.isLoaded) {
- if (!this.state.isLoaded) {
- return (
-
- Cargando ...
-
- );
- }
+ const { boardList, nightMode, isLoaded } = this.state;
+
+ if (!isLoaded) {
+ return (
+
+ Cargando ...
+
+ );
}
- const { boardList } = this.state;
- //const pathList = boardList.map(board => "/" + board.dir)
return (
-
+
--
cgit v1.2.1-18-gbd029