1. Introduction To React JS Flashcards
1
Q
What is React JS?
A
It is a JavaScript library used to build component-based user interfaces.
2
Q
How do you install React?
A
npx create-react-app appname
3
Q
How do you launch a React App?
A
npm start
4
Q
What is the format for writing components?
A
function componentName() { return (jsx); }
5
Q
What are some rules when creating a component?
A
The file name and the component name must match, and both must begin with capital letters, using camel casing.
6
Q
What does JSX stand for?
A
JavaScript XML, it allows us to write HTML and JavaScript in the same file.