// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",
e = "elf",
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
showState(); | |
// output: Ready | |
console.log("function declaration"); | |
function showState() { | |
console.log("Ready"); | |
} | |
console.log("function expression"); |
https://stackoverflow.com/questions/36651583/dynamically-add-child-components-in-react
var App = require('./App.js');
var SampleComponent = require('./SampleComponent.js');
ReactDOM.render(
https://medium.com/@ericclemmons/react-event-preventdefault-78c28c950e46
https://facebook.github.io/react/docs/events.html
event.preventDefault();
// Let's stop this event.
http://eslint.org/docs/developer-guide/working-with-custom-formatters#the-message-object
{
"parserOptions": {
"ecmaVersion": 6,
将设置放入此文件中以覆盖默认设置