Skip to main content

Overview

This guide shows you how to integrate Joyfill Components into your React v18 application.

🚀 Quick Start

Setup React Project

Create a new React project:

Create JoyDoc Component

Create src/components/JoyDocForm.js:

Update App Component

Update src/App.js:

Start Development Server

Open http://localhost:3000 in your browser.

Complete Project Structure

Complete React Example

App.js

App.css

JoyDocForm.js

Advanced React Integration

Custom Hook for Form Management

Create src/hooks/useJoyDocForm.js:

Using the Custom Hook

Common Configuration Options

That’s it! 🎉

Your React v18 application with Joyfill Components is now ready. The form will render with proper React state management and event handling.