David Nguyeneplus.dev·Aug 19, 2024Module quiz: navigation, updating and assets in React.jsTrue or false? In React, you can use a ternary operator in a component's return statement in React. True False React Router is... A built-in part of React-DOM. A stand-alone package that you can add to a React app. A built-in part of React. ...DiscussReact BasicsModule quiz: navigation, updating and assets in React.js
David Nguyeneplus.dev·Aug 19, 2024Self review: Song selection - React BasicIn plain JavaScript, how do you build an instance of the Audio constructor? new Audio(); New Audio(); Audio(); If an object instance of the Audio constructor is saved in a variable named “song”, what property on the “song” object can you use to...DiscussReact BasicsSelf review: Song selection - React Basic
David Nguyeneplus.dev·Aug 19, 2024Self review: Displaying images - React BasicIs this code a correct way to import an image in React? import avatar from "./assets/avatar.png" function UserImage() { return ( <div> <img src={avatar} alt = "User image" /> < /di...DiscussReact BasicsSelf review: Displaying images - React Basic
David Nguyeneplus.dev·Aug 15, 2024Knowledge check: Navigation - React BasicIs the following description true or false? A Single Page Application allows the user to interact with the website without downloading entire new webpages. Instead, it rewrites the current webpage as the user interacts with it. The outcome is that th...DiscussReact BasicsKnowledge check: Navigation - React Basic
David Nguyeneplus.dev·Aug 12, 2024Self review: Creating a route - React BasicWhat did you need to install in order to create routes? react-router-dom three.js router-dom react-dom Instead of anchor tags, what tag did you use with React Router? the to attribute the Link tag the element attribute the To tag What's...DiscussReact BasicsSelf review: Creating a route - React Basic
David Nguyeneplus.dev·Aug 8, 2024Module quiz: Data and state - React BasicIn React, data flows in one way: from a parent component to a child component. True False Why is one-way data flow important in React? It ensures that the data is flowing from top to bottom in the component hierarchy. It ensures that the data ...DiscussModule quiz: Data and state - React Basic
David Nguyeneplus.dev·Aug 8, 2024Knowledge check: State or stateless - React BasicWhat is a stateless component? A component that doesn’t track its parent’s state. A component that doesn’t track its own state. A stateful component must have a props object. False True To turn a stateless component into a stateful componen...DiscussReact BasicsKnowledge check: State or stateless - React Basic
David Nguyeneplus.dev·Aug 8, 2024Self review: Managing state in ReactTrue or false? When lifting state up, you need to move the useState from a child component to a parent component. True. False. If the state variable holds an array or a string value, once you pass that state via props from a parent to a child, y...DiscussReact BasicsSelf review: Managing state in React
David Nguyeneplus.dev·Aug 8, 2024Knowledge check: Passing state - React BasicWhat is the Context API? An alternative way to working with state in React. A way to change the execution context of a function in JavaScript. When working with useState to keep state in a variable, you should not use array destructuring. True ...DiscussReact BasicsKnowledge check: Passing state - React Basic
David Nguyeneplus.dev·Aug 8, 2024Knowledge Check: State the concept - React BasicIn React, can state be considered data? Yes No In React, can props be considered data? Yes No Choose the correct statement. The props object represents data that is external to a component, and state represents data that is internal to a c...DiscussReact BasicsKnowledge Check: State the concept - React Basic