/React-18-SSR-Implementation

React-18 Server side rendering API implementation

Primary LanguageJavaScript

React Application with React 18 Server Side API Implementation

This is a React application that has implemented React 18's server-side API for rendering components on the server. This allows for improved performance and better user experience by pre-rendering components on the server and sending them to the client.

Getting Started

To get started with this project, follow the steps below:

Prerequisites

  • Node.js (version 12 or higher)
  • npm (Node Package Manager)

Clone the Repository

  1. Open your terminal.
  2. Change the current working directory to the location where you want to clone the project.
  3. Run the following command to clone the repository:

Install Dependencies

  1. Navigate to the project's root directory in the terminal.
  2. Run the following command to install the required dependencies:
npm install

Build the Project

Before starting the project, it's recommended to build the application to ensure you have the latest changes. To build the project, run the following command:

npm run build

Start the Project

To start the React application with server-side rendering (SSR), run the following command:

npm run ssr

This will launch the application on a local development server. Open your web browser and visit http://localhost:3002 to see the application in action.