Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basedhound/form-nolibrary_react

Form built from scratch with React, demonstrating various methods for handling and validating inputs using useState, useRef, and FormData, without additional libraries.
https://github.com/basedhound/form-nolibrary_react

form form-validation react react18 vite

Last synced: 19 days ago
JSON representation

Form built from scratch with React, demonstrating various methods for handling and validating inputs using useState, useRef, and FormData, without additional libraries.

Awesome Lists containing this project

README

        



Project Banner

Form from Scratch - React


##
đź“‹ Table of Contents

- ✨ [Introduction](#introduction)
- ⚙️ [Tech Stack](#tech-stack)
- đź“ť [Features](#features)
- 🚀 [Quick Start](#quick-start)

##
✨ Introduction

**[EN]** A form built from scratch using React, showcasing different methods for handling and validating form inputs. This project demonstrates form management with useState, useRef, and FormData, without relying on additional libraries. It explores various approaches to validate and handle user input effectively.

**[FR]** Un formulaire construit de zéro avec React, illustrant différentes méthodes pour gérer et valider les entrées de formulaire. Ce projet démontre la gestion des formulaires avec useState, useRef et FormData, sans recourir à des bibliothèques supplémentaires. Il explore diverses approches pour valider et gérer efficacement les données utilisateur.

##
⚙️ Tech Stack

- [**React**](https://react.dev/reference/react) is a popular JavaScript library for building user interfaces, particularly single-page applications where data changes over time. React's component-based architecture allows developers to create reusable UI components, making development more efficient and the codebase easier to maintain.

- [**Vite**](https://vitejs.dev/guide/) is a modern front-end build tool that offers a fast and efficient development environment. It leverages ES modules for quick build times and features hot module replacement (HMR) for instant updates, making it ideal for frameworks like React, Vue, and Svelte. Vite's minimal configuration helps streamline development workflows.

##
🚀 Quick Start

Follow these steps to set up the project locally on your machine.


**Prerequisites**

Make sure you have the following installed on your machine:

- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/en)
- [npm](https://www.npmjs.com/) (Node Package Manager)


**Cloning the Repository**

```bash
git clone {git remote URL}
```


**Installation**

Let's install the project dependencies, from your terminal, run:

```bash
npm install
# or
yarn install
```


**Running the Project**

Installation will take a minute or two, but once that's done, you should be able to run the following command:

```bash
npm run dev
# or
yarn dev
```

Open [`http://localhost:5173`](http://localhost:5173) in your browser to view the project.