Redux in React
* Create React App
* index.js
* redux folder
* actions (with index.js inside)
* reducers (with index.js inside)
* install redux and react-redux
* Add Provider
* Wrap
* Create React App
* index.js
* redux folder
* actions (with index.js inside)
* reducers (with index.js inside)
* install redux and react-redux
* Add Provider
* Wrap
What is a SPA? React Router is an excellent tool we can use to help us easily turn our React applications into Single Page Applications (SPAs). In the early days of the web, when you had multiple HTML pages to your web site, you needed to create a new HTML
Create a component that uses axios to GET a random color from the random color API and sets that component's background color to that random color. https://www.colr.org/json/color/random?timestamp=${new Date().getTime()}
Build a simple react app with an input box, an
Given an array of indeterminate depth (dimensions), return a flattened version of the original array. function flatten(arr) { } let arr = [1, 2, [3]] flatten(arr) // returns [1, 2, 3]; let arr2 = ["hello", ["this", "is", ["a", "4 dimensional", ["array"]]]]; flatten(arr2) // returns ["hello", "this", "is", "a", "4 dimensional", "array"]; Hint This