How harithajc/form-builder works
This small React form app takes a user’s input through a statically defined contact form and displays the submitted values. The entry point mounts the app; the app supplies the sample definition to the renderer, which manages field values and submission locally. The shared types define the form data shape. Source excerpts show no persistence or external services; the submitted preview is part of the renderer rather than a separate subsystem.
Main entry points: FormRenderer.tsx Form renderer · App.tsx App shell · main.tsx React entry · sampleForm.ts Sample definition
Components 8
App runtime
- React entry
src/main.tsx - App shell
src/App.tsx - Global styles
src/index.css
Form workflow
- Sample definition
src/sampleForm.ts - Form renderer
src/FormRenderer.tsx - Submission preview
src/FormRenderer.tsx - Form types
src/types.ts
Other components
- Form user
Connections 8
- React entry → App shell: mounts
src/main.tsx - React entry → Global styles: imports
src/main.tsx - App shell → Sample definition: supplies
src/App.tsx - App shell → Form renderer: renders
src/App.tsx - Sample definition → Form types: conforms to
src/sampleForm.ts - Form renderer → Form types: uses
src/FormRenderer.tsx - Form user → Form renderer: fills and submits
src/FormRenderer.tsx - Form renderer → Submission preview: renders on submit
src/FormRenderer.tsx