info@lebersoftware.hu

Month: February 2020

How to implement server-side rendering (SSR) in your React application with NodeJS – step by step tutorial

Itroduction Could you imagine, that you can use the same React application in both server-side and client-side? Is it possible? YES IT IS! 🙂 In this tutorial I will show you how can you render your React application on server-side. A NodeJS application (which uses Express) will render our App component into HTML with all…
Read more

How to use Enzyme and Jest to write unit tests for a React app (mock out useAsync, action)

Welcome to Codeching channel! In this tutorial I will show you how to use Enzyme and JEST to write unit tests for a React application. We will install Enzyme, configure it and write test cases to test our component in the React application. We will mock out the useAsync hook from the react-async package and…
Read more