1.
Which of the following codes is used to create a React component with a
saying “Hello!”?
2.
What should not happen when you run the following:
import PropTypes from 'prop-types';

class HomeComponent extends React.Component {
    render() {
        // This must be exactly one element or it will warn.
        const child = this.props.children;
        return (

            {
                child
            }

        );
    }
}

HomeComponent.propTypes = {
    child: PropTypes.element.isRequired
};
3.
In ReactJS, which of the following is the correct validator to check if a variable has true/false and is a required field?
4.
How would you validate an enum?
5.
In ReactJS, what is the the output for the following:
console.log(<div/>)
 
6.
The correct method to import PropTypes is _____________________ in ReactJS.
7.
Input field that does not supply a value in ReactJS is called as ________________ .
8.
In ReactJS, which of the following is used to update the virtual DOM faster?
9.
Which of the following API is a must for every ReactJS component?
10.
Which of the following is used in data flow from owner to owned components in ReactJS?