From 98e726f189acb4e0c468b0667660eac9141b91fe Mon Sep 17 00:00:00 2001 From: maecapozzi Date: Sat, 8 Sep 2018 11:19:49 -0400 Subject: [PATCH] Add Quick Start Guide --- docs/getting-started/QuickStart.md | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/getting-started/QuickStart.md diff --git a/docs/getting-started/QuickStart.md b/docs/getting-started/QuickStart.md new file mode 100644 index 000000000..b33d19589 --- /dev/null +++ b/docs/getting-started/QuickStart.md @@ -0,0 +1,32 @@ +# Quick Start + +### 1. Install + +```console +foo@bar:~$ npm install --save react-redux +``` + +### 2. Set up the `` + +```js +import React from "react"; +import ReactDOM from "react-dom"; +import TodoApp from "./TodoApp"; + +import { Provider } from "react-redux"; +import store from "./redux/store"; + +const rootElement = document.getElementById("root"); +ReactDOM.render( + + + , + rootElement +); +``` + +### 3. Connect a component + +```js +connect(mapStateToProps, dispatchProps)(Component) +```