1/11
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What command do we use to create a new React Application?
npx create-react-app <filename>
What command do we use to start running a React project?
npm start
In React, what do we call a reusable piece of code that represents a part of the user interface?
Component
Which React folder servers as the location for all source code files?
src
Which React folder is commonly used to store images, attachments, and static files?
public
What do we call the method of passing data from a parent component to a child component?
Props/Properties
If we have a component function QuizTwo stored in components/QuizTwo.js, how do we import it into App.js? (2pts)
import QuizTwo from ‘. /components/QuizTwo’;
What do we call a set of data grouped into a collection, often used in React for rendering lists?
Dataset
If we have a component function QuizTwo, how do we export it properly from QuizTwo.js so it can be reused? (2pts)
export default QuizTwo;
Which UI library of React provides ready-to-use components to help build interactive user interfaces quickly?
Ant Design
Create a simple React functional component called SubjectName that will display your subject name. (4 pts)
Output: We are studying Integrative Programming and Technologies!
Write a simple props component MyName function that will pass your name into the function. (4 pts)
Also, indicate how to use the function in the App. js file.
Output: I am (name), and I will pass this subject.