Skip to content

andresmao85/React-Stateful-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Array Component Practice

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.

Features

  • 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

Getting Started

To run the application locally, follow these steps:

  1. Clone the repository: git clone https://github.com/your-repo/react-array-component.git Copy
  2. Navigate to the project directory: cd react-array-component Copy
  3. Install the dependencies: npm install Copy
  4. Start the development server: npm run dev Copy
  5. Open your browser and visit http://localhost:5173 to see the application running.

Technologies Used

  • React
  • Vite (for bundling and development server)

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

About

A React stateful component: Array Manipulation using state

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published