Create React App boilerplate with React 17, Webpack 5, Tailwind 2, Module Federation, and TypeScript.
This product is a slightly opinionated React boilerplate that utilizes Create React App with React 18, Webpack 5, Tailwind 3, Module Federation, and TypeScript. It provides a basic Module Federation example with two apps, App1 and App2. The template aims to provide a customizable and efficient starting point for React projects.
To use this template, follow the steps below:
Ensure that you have the following prerequisites installed:
Clone the repository to your local machine.
In the terminal, navigate to the project directory and run the following command to install all dependencies:
yarn install
To start both App1 and App2, run the following command:
yarn start
Make changes to the code as needed. The page will automatically reload, and build errors and lint warnings will be shown in the console.
Additional available commands:
This React boilerplate template uses Create React App in combination with Webpack 5, Module Federation, and Tailwind 3 to provide an efficient and customizable starting point for React projects. It includes a basic Module Federation example with two apps and follows a slightly opinionated folder structure to maintain consistency. The template also utilizes CRACO to easily configure and support Module Federation without the need to start from scratch. With its focus on efficiency and ease of use, this template is a valuable resource for React developers.