├── README.md └── index.js /README.md: -------------------------------------------------------------------------------- 1 | # Archival Note 2 | We are archiving this repository because we do not want learners to push personal development to the current repository. If you have any issues or suggestions to make, feel free to: 3 | - Utilize the https://knowledge.udacity.com/ forum to seek help on content-specific issues. 4 | - Submit a support ticket along with the link to your forked repository if (learners are) blocked for other reasons. Here are the links for the [retail consumers](https://udacity.zendesk.com/hc/en-us/requests/new) and [enterprise learners](https://udacityenterprise.zendesk.com/hc/en-us/requests/new?ticket_form_id=360000279131). 5 | 6 | # To-Do Goals Project 7 | 8 | This repo is a code-along project for the React & Redux Course of the [React Nanodegree program](https://www.udacity.com/course/react-nanodegree--nd019). 9 | 10 | Most of the commits in this repository correspond to videos in the program. 11 | 12 | ## Project Setup 13 | 14 | 1. Clone the Project - git clone https://github.com/udacity/reactnd-redux-todos-goals.git 15 | 2. Go into the directory where the project now lives - `cd reactnd-redux-todos-goals` 16 | 3. Install the dependencies - `npm install` 17 | 4. Start the app - `npm start` 18 | 19 | ## Contributing 20 | 21 | Because this is a code-along project and the commits correspond to specific videos in the program, we will not be accepting pull requests. 22 | 23 | If you feel like there's a major problem, please open an issue to discuss the problem and potential resolution. 24 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | function createStore () { 2 | // The store should have four parts 3 | // 1. The state 4 | // 2. Get the state. 5 | // 3. Listen to changes on the state. 6 | // 4. Update the state 7 | 8 | let state 9 | 10 | const getState = () => state 11 | 12 | return { 13 | getState 14 | } 15 | } --------------------------------------------------------------------------------