microsoft / TypeScript-React-Starter

A starter template for TypeScript and React with a detailed README describing how to use the two together.
MIT License
11.09k stars 1.21k forks source link

fix readme.md error #270

Closed nusr closed 5 years ago

nusr commented 5 years ago

fix README.md error

function getCurrentEnthusiasm(enthusiasmLevel){
  return enthusiasmLevel || 1
}
console.log(getCurrentEnthusiasm()) // 1
console.log(getCurrentEnthusiasm(1)) // 1
console.log(getCurrentEnthusiasm(0)) // 1  result should be 0
console.log(getCurrentEnthusiasm(-1)) // -1
0x29a commented 5 years ago

@nusr semicolon missed after const { enthusiasmLevel = 1 } = props.