This article shows how to pass json data from Express.js or AEM backend to the React app

Image for post
Image for post

A common use case for web applications is displaying authenticated user’s profile data. In this article, I will show you how to create a React client application backed by an Express or AEM server and consume user profile data from the server in each of the two configurations.

Client

First let’s create a client application using Create React App:

Assuming that user data from the server are available through the window object, creating Context provider makes it possible to initialise the app with user data and then use them throughout the application.

import React, { createContext, useState } from…


Image for post
Image for post

This article shows how to easily integrate your AEM component with Sharepoint and retrieve all files from specified library using Microsoft Graph API.

Requirements

Create component

First we need to create new AEM component that will display files from Sharepoint. Let’s add a simple html with a placeholder for the actual files and a corresponding js that will handle all the logic. …

About

Jakub Olszyna

Technical Architect @ Adobe

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store