Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/agapas/images-switcher

React app to switch images on toggle, on mouse hover or touch and by scrolling the page, made to practice React Hooks.
https://github.com/agapas/images-switcher

enzyme enzyme-testing functional-programming images-switcher jest jest-tests react react-hooks reactjs reactjs-es6

Last synced: about 1 month ago
JSON representation

React app to switch images on toggle, on mouse hover or touch and by scrolling the page, made to practice React Hooks.

Awesome Lists containing this project

README

        

# images-switcher
Simple app to switch images on toggle, mouse hover (or touch on mobiles) and by scrolling the page.
The project is made with React (to practice the React Hooks), in a Functional Programming like approach.
Unit tests made with Jest and Enzyme.

Demo page visible at: [http://agapas.github.io/images-switcher](http://agapas.github.io/images-switcher).

The project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Running the project

- go to project directory,
- run `npm i` to install packages (just a first time),
- run `npm start` (it runs the app in the development mode and opens [http://localhost:3000](http://localhost:3000) automatically to view in the browser).

## Testing the project

In the project directory run `npm test`. It launches the test runner in the interactive watch mode.

Run `npm coverage` to see coverage report.

## Production build

To run a production build use command `npm run build`. It builds the app for production to the build folder.

## License

This project is licensed under the [MIT] License - see the [LICENSE.md](LICENSE) file for details.