--- id: 5a24c314108439a4d403614a title: Moving Forward From Here challengeType: 6 isRequired: false videoUrl: '' localeTitle: 从这里前进 --- ## Description
恭喜!你完成了React和Redux的课程。在继续之前,最后一项值得指出。通常,您不会在这样的代码编辑器中编写React应用程序。如果您在自己的计算机上使用npm和文件系统,这个挑战可以让您一瞥语法的样子。代码看起来应该类似,除了使用import语句(这些语句提取了在挑战中为您提供的所有依赖项)。 “使用npm管理包”部分更详细地介绍了npm。最后,编写React和Redux代码通常需要一些配置。这可能很快变得复杂。如果您有兴趣在自己的机器上进行实验,可以配置Create React App并准备就绪。或者,您可以在CodePen中启用Babel作为JavaScript预处理器,将React和ReactDOM添加为外部JavaScript资源,并在那里工作。
## Instructions
记录消息'Now I know React and Redux!'到控制台。
## Tests
```yml tests: - text: 消息Now I know React and Redux!应该登录到控制台。 testString: 'assert(editor.getValue().includes("console.log("Now I know React and Redux!")") || editor.getValue().includes("console.log(\"Now I know React and Redux!\")"), "The message Now I know React and Redux! should be logged to the console.");' ```
## Challenge Seed
```jsx // import React from 'react' // import ReactDOM from 'react-dom' // import { Provider, connect } from 'react-redux' // import { createStore, combineReducers, applyMiddleware } from 'redux' // import thunk from 'redux-thunk' // import rootReducer from './redux/reducers' // import App from './components/App' // const store = createStore( // rootReducer, // applyMiddleware(thunk) // ); // ReactDOM.render( // // // , // document.getElementById('root') // ); // change code below this line ```
## Solution
```js // solution required ```