This file contains 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
const list = [ | |
<UpdateList key={ '0' }/>, | |
<UpdateList key={ '1' }/>, | |
<UpdateList key={ '2' }/>, | |
] | |
ReactDOM.render( list, document.getElementById( '..' ) ); |
This file contains 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
let userAgent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/ 604.1.21 (KHTML, like Gecko) Version/ 12.0 Mobile/17A6278a Safari/602.1.26'; | |
if (Platform.OS !== 'ios') { | |
userAgent = 'Mozilla/5.0 (Linux; Android 8.0.0; TA-1053 Build/OPR1.170623.026) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3368.0 Mobile Safari/537.36'; | |
} | |
return ( | |
<SafeAreaView> | |
<WebView | |
... | |
userAgent={userAgent} | |
... |
This file contains 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
this.setState({value: 'changed!'}, () => console.log(this.state) ); |
This file contains 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 CustomDocument extends Document { | |
render() { | |
return ( | |
<html> | |
<Head> | |
</Head> | |
<body> | |
<nav className="navbar navbar-expand navbar-light bg-light"> | |
... |
This file contains 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
Show hidden characters
{ | |
"presets": [ "@babel/react" ], | |
"plugins": [ | |
["@babel/plugin-proposal-decorators", {"legacy": true}], | |
["@babel/plugin-proposal-class-properties", {"loose": true}] | |
] | |
} |
This file contains 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 store from './store'; | |
@observer | |
class View extends Component { | |
render() { | |
return <div>{ store.userName }</div> | |
} | |
} | |
export default View; |
This file contains 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 Store { | |
@observer userName = ''; | |
} | |
export default new Store(); |
This file contains 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
-- 암호 검증에 대한 플러그인을 제거합니다. | |
uninstall plugin validate_password; | |
-- 설정 업데이트 | |
ALTER USER 'root'@'localhost' | |
IDENTIFIED WITH mysql_native_password | |
BY ''; -- homebrew로 설치시 기본 비밀번호는 '' 입니다. 본인의 설정에 맞게 변경하세요. |
This file contains 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
mysql -u root |
This file contains 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
default-authentication-plugin=mysql_native_password |
NewerOlder