2.5 KiB
2.5 KiB
id | title | challengeType | isRequired |
---|---|---|---|
5a24c314108439a4d403614a | Moving Forward From Here | 6 | false |
Description
import
statements (these pull in all of the dependencies that have been provided for you in the challenges). The "Managing Packages with npm" section covers npm in more detail.
Finally, writing React and Redux code generally requires some configuration. This can get complicated quickly. If you are interested in experimenting on your own machine, the
Create React App comes configured and ready to go.
Alternatively, you can enable Babel as a JavaScript Preprocessor in CodePen, add React and ReactDOM as external JavaScript resources, and work there as well.
Instructions
'Now I know React and Redux!'
to the console.
Tests
tests:
- text: The message <code>Now I know React and Redux!</code> should be logged to the console.
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 <code>Now I know React and Redux!</code> should be logged to the console.');
Challenge Seed
// 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(
// <Provider store={store}>
// <App/>
// </Provider>,
// document.getElementById('root')
// );
// change code below this line
Solution
console.log('Now I know React and Redux!');