1.
In ReactJS, a higher-order component is used to transform _____________________________.
2.
In ReactJS, which of the following is a high-level API based on ReactTransitionGroup which is used for adding animations?
3.
In ReactJS, which of these is followed by Flux?
4.
What is the error in the following ReactJS code:
function MyFunctionalComponent() {
    return;
}

class Parent extends React.Component {
    render() {
        return (
            ref = {
                (input) => {
                    this.textInput = input;
                }
            }
            />
        );
    }
}
5.
In ReactJS, which of the following methods is used to change the state of a component?
6.
What is wrong with the following ReactJS code:
class Toggle extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            isToggleOn: true
        };

    }

    handleClick() {
        this.setState(prevState => ({
            isToggleOn: !prevState.isToggleOn
        }));
    }

    render() {
        return (

            {
                this.state.isToggleOn ? 'ON' : 'OFF'
            }

        );
    }
}

ReactDOM.render(,
    document.getElementById('root')
);
7.
What is the error in the following ReactJS code:
function ActionLink() {
function handleClick(e) {
console.log('The link was clicked.');
return false;
}

return (

Click me

);
}
8.
What is wrong with the following ReactJS code:
this.setState({
    amount: this.state.amount + this.props.addedBalance,
});
9.
Which of these will appear in a browser on running the following ReactJS code:
React.render(
    Hello, world!
    byebye,
    document.body
);

React.render(
    Hello, world2!
    byebye 2,
    document.body
);


Note: Assume that https://fb.me/react-0.12.0.js and https://fb.me/JSXTransformer-0.12.0.js are already included.
10.
What is the error in the following ReactJS component:
function GetRandom(props) {
    return {
        Math.random()
    };
}