Skip to content

Velestus/react-quote-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Quote Generator

This project was bootstrapped with Create React App.

This is simple Random Quote Generator from freeCodeCamp.org projects - refactored so it uses ReactJS.

Solution used here is quite simple - I am providing fixed arrays of quotes and color values. After clicking New Quote button app uses

Math.floor(Math.random() * array.length);

to randomly select index of quote and color value in those arrays. Then it smoothly transfers from old values to new ones. Transitions are defined inside CSS.

About

Random Quote Generator made in ReactJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published