@@ -458,11 +458,7 @@ export default function Menu() {
458458
459459 return (
460460 <>
461- <<<<<< < HEAD
462- < h2> Koja je vaša grickalica za put? < / h2>
463- ====== =
464- < h2> What' s your travel snack?</h2>
465- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
461+ < h2> Koja je vaša grickalica za put? < / h2>
466462 < ul>
467463 {items .map ((item , index ) => (
468464 < li key= {item .id }>
@@ -924,13 +920,8 @@ export const initialTravelPlan = {
924920 },
925921 10 : {
926922 id: 10 ,
927- <<<<<<< HEAD
928923 title: ' Amerika' ,
929- childIds: [11, 12, 13, 14, 15, 16, 17, 18],
930- =======
931- title: ' Americas' ,
932924 childIds: [11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 ],
933- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
934925 },
935926 11 : {
936927 id: 11 ,
@@ -974,13 +965,8 @@ export const initialTravelPlan = {
974965 },
975966 19 : {
976967 id: 19 ,
977- <<<<<<< HEAD
978968 title: ' Azija' ,
979- childIds: [20, 21, 22, 23, 24, 25],
980- =======
981- title: ' Asia' ,
982969 childIds: [20 , 21 , 22 , 23 , 24 , 25 ],
983- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
984970 },
985971 20 : {
986972 id: 20 ,
@@ -1014,13 +1000,8 @@ export const initialTravelPlan = {
10141000 },
10151001 26 : {
10161002 id: 26 ,
1017- <<<<<<< HEAD
10181003 title: ' Evropa' ,
1019- childIds: [27, 28, 29, 30, 31, 32, 33],
1020- =======
1021- title: ' Europe' ,
10221004 childIds: [27 , 28 , 29 , 30 , 31 , 32 , 33 ],
1023- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
10241005 },
10251006 27 : {
10261007 id: 27 ,
@@ -1059,13 +1040,8 @@ export const initialTravelPlan = {
10591040 },
10601041 34 : {
10611042 id: 34 ,
1062- <<<<<<< HEAD
10631043 title: ' Okeanija' ,
1064- childIds: [35, 36, 37, 38, 39, 40, 41],
1065- =======
1066- title: ' Oceania' ,
10671044 childIds: [35 , 36 , 37 , 38 , 39 , 40 , 41 ],
1068- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
10691045 },
10701046 35 : {
10711047 id: 35 ,
@@ -1280,13 +1256,8 @@ export const initialTravelPlan = {
12801256 },
12811257 10 : {
12821258 id: 10 ,
1283- <<<<<<< HEAD
12841259 title: ' Amerika' ,
1285- childIds: [11, 12, 13, 14, 15, 16, 17, 18],
1286- =======
1287- title: ' Americas' ,
12881260 childIds: [11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 ],
1289- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
12901261 },
12911262 11 : {
12921263 id: 11 ,
@@ -1330,13 +1301,8 @@ export const initialTravelPlan = {
13301301 },
13311302 19 : {
13321303 id: 19 ,
1333- <<<<<<< HEAD
13341304 title: ' Azija' ,
1335- childIds: [20, 21, 22, 23, 24, 25],
1336- =======
1337- title: ' Asia' ,
13381305 childIds: [20 , 21 , 22 , 23 , 24 , 25 ],
1339- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
13401306 },
13411307 20 : {
13421308 id: 20 ,
@@ -1370,13 +1336,8 @@ export const initialTravelPlan = {
13701336 },
13711337 26 : {
13721338 id: 26 ,
1373- <<<<<<< HEAD
13741339 title: ' Evropa' ,
1375- childIds: [27, 28, 29, 30, 31, 32, 33],
1376- =======
1377- title: ' Europe' ,
13781340 childIds: [27 , 28 , 29 , 30 , 31 , 32 , 33 ],
1379- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
13801341 },
13811342 27 : {
13821343 id: 27 ,
@@ -1415,13 +1376,8 @@ export const initialTravelPlan = {
14151376 },
14161377 34 : {
14171378 id: 34 ,
1418- <<<<<<< HEAD
14191379 title: ' Okeanija' ,
1420- childIds: [35, 36, 37, 38, 39, 40, 41],
1421- =======
1422- title: ' Oceania' ,
14231380 childIds: [35 , 36 , 37 , 38 , 39 , 40 , 41 ],
1424- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
14251381 },
14261382 35 : {
14271383 id: 35 ,
@@ -1639,13 +1595,8 @@ export const initialTravelPlan = {
16391595 },
16401596 10 : {
16411597 id: 10 ,
1642- <<<<<<< HEAD
16431598 title: ' Amerika' ,
1644- childIds: [11, 12, 13, 14, 15, 16, 17, 18],
1645- =======
1646- title: ' Americas' ,
16471599 childIds: [11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 ],
1648- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
16491600 },
16501601 11 : {
16511602 id: 11 ,
@@ -1689,13 +1640,8 @@ export const initialTravelPlan = {
16891640 },
16901641 19 : {
16911642 id: 19 ,
1692- <<<<<<< HEAD
16931643 title: ' Azija' ,
1694- childIds: [20, 21, 22, 23, 24, 25,],
1695- =======
1696- title: ' Asia' ,
16971644 childIds: [20 , 21 , 22 , 23 , 24 , 25 ,],
1698- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
16991645 },
17001646 20 : {
17011647 id: 20 ,
@@ -1729,13 +1675,8 @@ export const initialTravelPlan = {
17291675 },
17301676 26 : {
17311677 id: 26 ,
1732- <<<<<<< HEAD
17331678 title: ' Evropa' ,
1734- childIds: [27, 28, 29, 30, 31, 32, 33],
1735- =======
1736- title: ' Europe' ,
17371679 childIds: [27 , 28 , 29 , 30 , 31 , 32 , 33 ],
1738- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
17391680 },
17401681 27 : {
17411682 id: 27 ,
@@ -1774,13 +1715,8 @@ export const initialTravelPlan = {
17741715 },
17751716 34 : {
17761717 id: 34 ,
1777- <<<<<<< HEAD
17781718 title: ' Okeanija' ,
1779- childIds: [35, 36, 37, 38, 39, 40, 41],
1780- =======
1781- title: ' Oceania' ,
17821719 childIds: [35 , 36 , 37 , 38 , 39 , 40 , 41 ],
1783- >>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
17841720 },
17851721 35 : {
17861722 id: 35 ,
@@ -1885,23 +1821,13 @@ Ponekad, možete smanjiti ugnježdenost state-a pomeranjem nekih ugnježdenih ob
18851821
18861822<Recap>
18871823
1888- <<<<<<< HEAD
18891824* Ako se dve state promenljive uvek istovremeno ažuriraju, pokušajte da ih spojite u jednu.
18901825* Pažljivo birajte state promenljive da biste izbegli kreiranje "nemogućih" stanja.
18911826* Strukturirajte state na način koji smanjuje šanse za pravljenje grešaka prilikom ažuriranja.
18921827* Izbegavajte suvišan i dupliran state kako ne biste morali da ih sinhronizujete.
18931828* Ne stavljajte props *unutar* state-a osim ako specifično želite da sprečite ažuriranja.
18941829* Za UI šablone poput odabira, u state-u čuvajte ID ili indeks umesto celog objekta.
18951830* Ako je ažuriranje duboko ugnježdenog state-a komplikovano, probajte da ga flatten-ujete.
1896- =======
1897- * If two state variables always update together, consider merging them into one.
1898- * Choose your state variables carefully to avoid creating "impossible" states.
1899- * Structure your state in a way that reduces the chances that you' ll make a mistake updating it.
1900- * Avoid redundant and duplicate state so that you don' t need to keep it in sync.
1901- * Don' t put props * into* state unless you specifically want to prevent updates.
1902- * For UI patterns like selection, keep ID or index in state instead of the object itself.
1903- * If updating deeply nested state is complicated, try flattening it.
1904- >>>>>> > abe931a8cb3aee3e8b15ef7e187214789164162a
19051831
19061832</Recap>
19071833
0 commit comments