Questions React js

Bonjour,
j’ai besoin d’une reponse pour ce deux question
merci

which of the following statements is correct regarding context in react
1/context can be referenced from a child component by the this.Context() function
2/context,if defined,cannot be accesses in life cycle methods
3/context can be passed down the component tree by defining childContextTypes and getChildContext on the parent component
4/context cannot be accessed in stateless functional components

which of the following behaviors is expected with respect to the shouldComponentUpdate lifecycle methode as implemented in the following React component;
1/component will update on a change of props but will not update on a change of sate
2/component will update on a change pf state but will not update on a change of props
3/component will never on a change pf state but will not update on a change of props
4/component will not anything

Human Coders - Le centre de formation recommandé par les développeur·se·s pour les développeur·se·s