Go through the problems below and use github to store the solution and send us the link for the same.
Using ReactJs, write a solution that does the following:
1. Render a button on dom
2. On button click change the color of the button randomly ( available colors are red, green, blue, black and orange ), However if the previous color was blue the next color should always be green. Use state to store the color.
3. Using store, reducers and context, keep track of the colors that were rendered and display it below the button in a comma seperated string. For eg red, blue, green . The text for each color should also display their color.
1.Create a html page with an image background covering the full screen.
2. Add a block of width 500px by 300px, which is at center of page both horizontally and vertically. However On devices less than 600px, the box should be of full width and should center vertically only.