为什么我收到此javascript错误?

Rya*_*ams -4 javascript node.js reactjs redux react-redux

我没有在附近完成,但当我尝试npm开始这个项目我得到错误:

 Unexpected token, expected ;

  2 |
  3 |
> 4 | const App = fucntion() {
    |                        ^
  5 |   return <div>HI!</div>;
  6 | }
  7 |
Run Code Online (Sandbox Code Playgroud)

这是index.js的完整文件:

import React from 'react';


const App = fucntion() {
  return <div>HI!</div>;
}



//shove into dom (page)
React.render(App);
Run Code Online (Sandbox Code Playgroud)

Jim*_*lla 5

你拼错了功能. fucntion