This repository provides sample implementations for the react-confirm library using TypeScript and Bootstrap.
Referenced samples are from the original react-confirm repository, and these samples are designed to demonstrate:
A basic implementation using TypeScript and Bootstrap.
An enhanced version of the first sample by integrating React's Context API.
The archive/ directory contains historical example implementations that were previously located in the original react-confirm repository. These samples are preserved for reference purposes.
- Node.js
- npm or yarn
- Clone the sample repository:
git clone https://github.com/haradakunihiko/react-confirm-sample.git
- Navigate to the desired sample directory (e.g.,
1_typescriptor2_typescript_using_context):
cd [SAMPLE_DIRECTORY]
- Install dependencies:
npm install
- Start the development server:
npm start
The application should then be running on http://localhost:3000.
Please note that interactions with the sample dialogs output details to the console. Review the console output while interacting with the dialogs to observe the behavior and outcomes.
- Bootstrap Example - react-confirm with React Bootstrap (older API)
- Chakra UI Example - react-confirm with Chakra UI (older API)
Feedback, issues, and pull requests are welcome!