Context API: the React 16.3 Feature that is causing a stir

AI and Data
Context API la nouveaute de React 16.3 qui affole la toile

As you probably know, version 16.3 of React was released around March. In this article, we are going to talk to you about a new feature that is generating a lot of discussion within the React community: the Context API.

What is it and how does it work?

This API has one specific purpose: to send properties down to your child components from any parent component, without necessarily going through an intermediary.

The API is initialised with the React.createContext function, which returns a Provider corresponding to the parent component, as well as a Consumer, corresponding to the child component. Whereas previously it was necessary to go through several providers in order to connect the consumer to the desired provider, this API makes it possible to link the child directly to the parent without getting into overly complex connections.
const {Provider, Consumer} = React.createContext(defaultValue);

Now that we have explained how the Context API is initialised, we are going to look at initialising the Provider and the Consumer.

The Provider

This component is the one located highest up in the context, or even in the application. Its particular feature is that it subscribes the Consumers to context changes. It can also be connected to several consumers (child components). Its value corresponds to the properties that will be broadcast to the Consumers.
You can declare a provider as follows:

The Consumer

The Consumer is the element that will receive the property from the Provider. It subscribes to context changes. In order to retrieve the properties broadcast by the Provider, the Consumer must use a function as a child in order to use the shared properties. Here is an example below.
{value => /* render something based on the context value */}

Application examples

You will find here an example of the API in use. You will find the creation of a context, as well as the initialisation of a provider and a consumer (source: reactjs.org).
theme-context.js
See the Pen bKPzXq by Aaron (@leox47) on CodePen.
themed-button.js
See the Pen GGbeKo by Aaron (@leox47) on CodePen.
app.js
See the Pen MXMxgG by Aaron (@leox47) on CodePen.
We publish other technical articles dedicated to React on our blog; do not hesitate to follow us and subscribe to our LinkedIn page.

How about we connect?

Shape your brand’s digital future. Whether you want to align your touchpoints, create unified customer experiences, or optimize your omnichannel ecosystem, we design solutions that blend innovation and elegance.

Parler à un expert

Insights,
the essentials

All news
API Gateways en 2026 le guide pragmatique de Kong, Gravitee, Tyk et HAProxy
AI and Data 22.06.2026

API Gateways in 2026: the pragmatic guide to Kong, Gravitee, Tyk and HAProxy

IA et le développeur
AI and Data 01.06.2023

How do you use AI as a developer?

Image représentant l'article sur Framework Strapi
AI and Data 02.09.2021

Strapi, a pomising CMS

Les 7 métiers de la tech incontournables en 2026
Tech and Architecture 05.08.2026

The 7 must-have tech jobs in 2026

Numendo Paris Agency

48 Rue de la Bienfaisance
75008 Paris

Our Paris agency supports brands and key accounts with their most strategic digital projects.

Located just 10 minutes from Saint-Lazare station and steps from the Miromesnil metro, it brings together our experts in consulting, e-commerce, product data, and omnichannel architecture.

Numendo Paris embodies the perfect synergy of strategic vision, technical expertise, and client proximity.

Be part of the adventure
Numendo Paris

Joining Numendo Paris means joining an innovation hub where technical excellence meets an entrepreneurial spirit. A stimulating environment to drive world-class strategic projects right in the heart of the capital.

Numendo Mulhouse Agency

2a Av. Auguste Wicky
68100 Mulhouse

The Mulhouse agency is our technical center of excellence dedicated to the performance of your business platforms.

Located in the heart of Alsace, steps from the Mulhouse train station and in close proximity to Germany and Switzerland, our office is home to a community of passionate experts focused on innovation and code robustness.

It embodies the group’s technological powerhouse, capable of building highly complex B2B and industrial ecosystems.

Be part of the adventure
Numendo Mulhouse

Thriving in Mulhouse means joining a historic hub where a passion for technology and team spirit take center stage. <br>A human-scale environment ideal for tackling large-scale industrial and technical challenges.

Numendo Genève Agency

Rue du Marché 5,
1204 Genève

Our Geneva agency combines a culture of precision with digital expertise to elevate your projects in Switzerland and internationally.

Ideally located in the very heart of Geneva, it offers a premium work environment to support the data transformation of the most demanding businesses.

Geneva is our dedicated hub for structuring product information and deploying agile and scalable e-commerce strategies, primarily within the luxury and finance sectors.

Be part of the adventure
Numendo Geneva

Being part of the Geneva team means cultivating high standards and precision to deliver high-performing, sustainable digital solutions.<br>An exceptional work environment to transform the future of product data and Swiss e-commerce.