馃殌 CYBER WEEK SALE: 50% OFF on JavaScript Fundamentals 馃挭

Task #3801, Stage #25 - Vocabulary Builder app

Now let鈥檚 work on the Details component. It should return the View element. For View, the marginVertical property must be 10. Inside the View, first add a Text element: for the detailsKey value defs - the inner text is Definition:,...

August 15, 2020 路 1 min 路 Coderslang Master

Task #3801, Stage #26 - Vocabulary Builder app

Now is the time to work on the Word component. It will expand and collapse word details. To do this, add a flag using the useState hook. The initial value is false....

August 15, 2020 路 2 min 路 Coderslang Master

Task #3801, Stage #27 - Vocabulary Builder app

To display the data, you must first prepare. To do this, export the preparedDetails function from the file: src/containers/Words/Word/helpers.js. This function must receive one meanings argument. meanings is an array of objects that describe a word....

August 15, 2020 路 2 min 路 Coderslang Master

Task #3801, Stage #28 - Vocabulary Builder app

We need to add one more, this time the last, component. Let鈥檚 create it in the src/components/AlertModal folder. This component must return the Modal element. The visible property should be cast into it, and the handleClose property should be passed into its onRequestClose property....

August 15, 2020 路 2 min 路 Coderslang Master

Task #3801, Stage #29 - Vocabulary Builder app

Let鈥檚 add a modal window to the Words container. First, let鈥檚 add the logic to enable it. Let鈥檚 create its state with useState. The initial value is an object with fields:...

August 15, 2020 路 1 min 路 Coderslang Master

Task #3801, Stage #3 - Vocabulary Builder app

Let鈥檚 add the navigator component in the file src/components/Navigator/index.js. Let鈥檚 immediately add temporary components for our future screens. Let鈥檚 place them in the src/containers folder: Words/index.js, Lists/index.js, AddingListOrWord/index.js. All components and containers must be named exactly the same as the folders in which they are located....

August 15, 2020 路 1 min 路 Coderslang Master

Task #3801, Stage #30 - Vocabulary Builder app

The Words container needs to be connected to the store using the connect method. We will use both mapStateToProps and mapDispatchToProps. mapStateToProps should only return one words property equal to the WORDS from the state....

August 15, 2020 路 1 min 路 Coderslang Master

Task #3801, Stage #31 - Vocabulary Builder app

The AddingListOrWord container must be connected to the store using the connect method. We will use both mapStateToProps and mapDispatchToProps. mapStateToProps must return two loading and error properties from the state....

August 15, 2020 路 2 min 路 Coderslang Master

Task #3801, Stage #32 - Vocabulary Builder app

The final touch is loading data between inclusions. In the file App.js, add a call to the store.dispatch method before loading the fonts. store we imported earlier and passed it to the provider....

August 15, 2020 路 1 min 路 Coderslang Master

Task #3801, Stage #4 - Vocabulary Builder app

Let鈥檚 add a file with a list of colors that will be used in the project. From the src/assets/styles/colors.js file, export the default object. In this object, define the colors: blue: #4D8ADA, blue1: #FAFCFF, blue2: #D5E2F2, blue3: #DEECFE, black: #1E1E1E,...

August 15, 2020 路 1 min 路 Coderslang Master