This is a simple React application created as a practice for working with components, state management, and array manipulation. The app provides a user interface with buttons and an input field to perform various operations on an array of letters.
- Add a letter to the start or end of the array
- Remove the first element from the array
- Remove all occurrences of a specific letter from the array
- Update all occurrences of a specific letter to another letter
- Add a letter at a specific index in the array
- Clear the entire array
- Reset the array to its initial state
- Display the current state of the array
To run the application locally, follow these steps:
- Clone the repository: git clone https://github.com/your-repo/react-array-component.git Copy
- Navigate to the project directory: cd react-array-component Copy
- Install the dependencies: npm install Copy
- Start the development server: npm run dev Copy
- Open your browser and visit
http://localhost:5173
to see the application running.
- React
- Vite (for bundling and development server)
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.