https://github.com/OnizukaJS/Fit-For-Champions
- Polish the readme using the markdown syntax for the Headlines
- Add the link of the deployed verision to the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Iteration #1: Find the maximum | |
const maxOfTwoNumbers = (a, b) => { | |
if(a > b) return a; | |
else if (b > a) return b; | |
else return a | |
}; | |
// Iteration #2: Find longest word | |
const words = ['mystery', 'brother', 'aviator', 'crocodile', 'pearl', 'orchard', 'crackpot']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mockFetch(str) { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => resolve({ name: "Uros", job: "SE" }), 3000); | |
}); | |
} | |
function subscribeOnAuth(cb) { | |
const unsub = () => { | |
console.log("unsubed"); | |
cb = () => console.log("nothing");; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect, useRef, useCallback } from "react"; | |
function TextField() { | |
const [type, setType] = useState("text"); | |
const [inputValue, setInputValue] = useState("text"); | |
const inputRef = useRef(); | |
const handleChange = e => setInputValue(e.target.value); | |
const onToggle = useCallback(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass/ | |
| | |
|– base/ | |
| |– _reset.scss # Reset/normalize | |
| |– _typography.scss # Typography rules | |
| ... # Etc… | |
| | |
|– components/ | |
| |– _buttons.scss # Buttons | |
| |– _carousel.scss # Carousel |