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 { useState, useEffect } from 'react'; | |
| // Usage | |
| function App() { | |
| // Call hook multiple times to get animated values with different start delays | |
| const animation1 = useAnimation('elastic', 600, 0); | |
| const animation2 = useAnimation('elastic', 600, 150); | |
| const animation3 = useAnimation('elastic', 600, 300); | |
| return ( |
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 { useState, useCallback, useRef } from "react"; | |
| // Usage | |
| function App() { | |
| const [hoverRef, isHovered] = useHover(); | |
| return ( | |
| <div ref={hoverRef}> | |
| {isHovered ? '😁' : '☹️'} | |
| </div> |
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
| // 0 урок | |
| // 1 урок | |
| // 2 урока | |
| // 4 урока | |
| // 5 уроков | |
| // 10 уроков | |
| // 11 уроков | |
| // 14 уроков | |
| // 15 уроков | |
| // 20 уроков |
- You're responsible for code quality.
- Use meaningful names.
- Write code that expresses intent.
- Code should speak for itself. Less comments = less maintenance.
- Leave the code better than you found it.
- Single-responsibility code. i.e function does 1 thing well. Less arguments = better function. classes: most methods use most of the class' properties.
- Tests (TDD).
- Work on big picture skeleton, then fill in the details later
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
| class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| name: this.props.name || 'Anonymous' | |
| } | |
| } | |
| render() { | |
| return ( |
General
- Describe the difference between a cookie, sessionStorage and localStorage. 3
- What is CORS? How can we solve CORS problem? What's the different between JSONP and AJAX? Can JSONP do POST?
- What is reverse proxy? When do we need it?
CSS
- What's the difference between inline and inline-block? 3
- Do you have mobile webpage expierence? yes -> how do you response the page? 0
- What's the different of em and rem? vw and vh? rem body 0 em 0
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/kuma/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| # ZSH_THEME="robbyrussell" | |
| POWERLEVEL9K_MODE='nerdfont-complete' | |
| # Add the custom JavaScript JS icon prompt segment |
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
| /* | |
| settings.json | |
| This config file is for VS Code | |
| Put the file into your project's root directory | |
| Place your settings in this file to overwrite default and user settings. | |
| Dependent VS Code Plugins: | |
| Beautify | |
| ESLint |
NewerOlder