@@ -176,7 +176,7 @@ function Cup({ guest }) {
176176}
177177
178178export default function TeaGathering () {
179- let cups = [];
179+ const cups = [];
180180 for (let i = 1 ; i <= 12 ; i++ ) {
181181 cups .push (< Cup key= {i} guest= {i} / > );
182182 }
@@ -246,7 +246,7 @@ export default function TeaGathering() {
246246
247247``` js src/Clock.js active
248248export default function Clock ({ time }) {
249- let hours = time .getHours ();
249+ const hours = time .getHours ();
250250 if (hours >= 0 && hours <= 6 ) {
251251 document .getElementById (' time' ).className = ' night' ;
252252 } else {
@@ -308,7 +308,7 @@ body > * {
308308
309309``` js src/Clock.js active
310310export default function Clock ({ time }) {
311- let hours = time .getHours ();
311+ const hours = time .getHours ();
312312 let className;
313313 if (hours >= 0 && hours <= 6 ) {
314314 className = ' night' ;
@@ -607,14 +607,20 @@ export default function StoryTray({ stories }) {
607607import { useState , useEffect } from ' react' ;
608608import StoryTray from ' ./StoryTray.js' ;
609609
610+ <<<<<< < HEAD
610611let initialStories = [
611612 {id: 0 , label: " Гісторыя Анкіта" },
612613 {id: 1 , label: " Гісторыя Тэйлара" },
614+ ====== =
615+ const initialStories = [
616+ {id: 0 , label: " Ankit's Story" },
617+ {id: 1 , label: " Taylor's Story" },
618+ >>>>>> > 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
613619];
614620
615621export default function App () {
616- let [stories, setStories] = useState ([... initialStories])
617- let time = useTime ();
622+ const [stories , setStories ] = useState ([... initialStories])
623+ const time = useTime ();
618624
619625 // HACK: Прадухіленне вечнага росту памяці падчас чытання дакументаў.
620626 // Тут мы парушаем свае ўласныя правілы.
@@ -703,14 +709,20 @@ export default function StoryTray({ stories }) {
703709import { useState , useEffect } from ' react' ;
704710import StoryTray from ' ./StoryTray.js' ;
705711
712+ <<<<<< < HEAD
706713let initialStories = [
707714 {id: 0 , label: " Гісторыя Анкіта" },
708715 {id: 1 , label: " Гісторыя Тэйлара" },
716+ ====== =
717+ const initialStories = [
718+ {id: 0 , label: " Ankit's Story" },
719+ {id: 1 , label: " Taylor's Story" },
720+ >>>>>> > 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
709721];
710722
711723export default function App () {
712- let [stories, setStories] = useState ([... initialStories])
713- let time = useTime ();
724+ const [stories , setStories ] = useState ([... initialStories])
725+ const time = useTime ();
714726
715727 // HACK: Прадухіленне вечнага росту памяці падчас чытання дакументаў.
716728 // Тут мы парушаем свае ўласныя правілы.
@@ -770,8 +782,13 @@ li {
770782
771783``` js src/StoryTray.js active
772784export default function StoryTray ({ stories }) {
785+ <<<<<< < HEAD
773786 // Скапіруйце масіў!
774787 let storiesToDisplay = stories .slice ();
788+ ====== =
789+ // Copy the array!
790+ const storiesToDisplay = stories .slice ();
791+ >>>>>> > 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
775792
776793 // Не ўплывае на зыходны масіў:
777794 storiesToDisplay .push ({
@@ -795,14 +812,20 @@ export default function StoryTray({ stories }) {
795812import { useState , useEffect } from ' react' ;
796813import StoryTray from ' ./StoryTray.js' ;
797814
815+ <<<<<< < HEAD
798816let initialStories = [
799817 {id: 0 , label: " Гісторыя Анкіта" },
800818 {id: 1 , label: " Гісторыя Тэйлара" },
819+ ====== =
820+ const initialStories = [
821+ {id: 0 , label: " Ankit's Story" },
822+ {id: 1 , label: " Taylor's Story" },
823+ >>>>>> > 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
801824];
802825
803826export default function App () {
804- let [stories, setStories] = useState ([... initialStories])
805- let time = useTime ();
827+ const [stories , setStories ] = useState ([... initialStories])
828+ const time = useTime ();
806829
807830 // HACK: Прадухіленне вечнага росту памяці падчас чытання дакументаў.
808831 // Тут мы парушаем свае ўласныя правілы.
0 commit comments