Skip to content

Commit 8479774

Browse files
committed
Formatting
1 parent 96fec15 commit 8479774

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

docs/api/connect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The second parameter is normally referred to as `ownProps` by convention.
121121
122122
```js
123123
// binds on component re-rendering
124-
<button onClick={() => this.props.toggleTodo(this.props.todoId)} />
124+
;<button onClick={() => this.props.toggleTodo(this.props.todoId)} />
125125

126126
// binds on `props` change
127127
const mapDispatchToProps = (dispatch, ownProps) => {

docs/introduction/quick-start.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export default connect(
7575
)(Counter)
7676
```
7777

78-
7978
## Help and Discussion
8079

8180
The **[#redux channel](https://discord.gg/0ZcbPKXt5bZ6au5t)** of the **[Reactiflux Discord community](http://www.reactiflux.com)** is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - come join us!

docs/using-react-redux/accessing-store.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ export default connect(
4747
mapDispatch,
4848
null,
4949
{ context: MyContext }
50-
)(MyComponent);
50+
)(MyComponent)
5151

5252
// or, call connect as normal to start
5353
const ConnectedComponent = connect(
5454
mapState,
5555
mapDispatch
56-
)(MyComponent);
56+
)(MyComponent)
5757

5858
// Later, pass the custom context as a prop to the connected component
59-
<ConnectedComponent context={MyContext} />
59+
;<ConnectedComponent context={MyContext} />
6060
```
6161

6262
The following runtime error occurs when React Redux does not find a store in the context it is looking. For example:
@@ -132,7 +132,7 @@ function MyConnectedComponent() {
132132
// component where it can be used in lifecycle methods
133133
}}
134134
</ReactReduxContext.Consumer>
135-
);
135+
)
136136
}
137137
```
138138

test/components/connect.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ describe('React', () => {
16971697
it('should not error on valid component with circular structure', () => {
16981698
const createComp = Tag => {
16991699
const Comp = React.forwardRef(function Comp(props, ref) {
1700-
return <Tag>{props.count}</Tag>
1700+
return <Tag ref={ref}>{props.count}</Tag>
17011701
})
17021702
Comp.__real = Comp
17031703
return Comp
@@ -3157,7 +3157,7 @@ describe('React', () => {
31573157
return { itemIds }
31583158
}
31593159

3160-
function App({ itemIds, deleteB }) {
3160+
function App({ itemIds }) {
31613161
const items = itemIds.map(id => <ConnectedListItem key={id} id={id} />)
31623162

31633163
return (
@@ -3170,7 +3170,7 @@ describe('React', () => {
31703170

31713171
const ConnectedApp = connect(appMapState)(App)
31723172

3173-
const tester = rtl.render(
3173+
rtl.render(
31743174
<ProviderMock store={store}>
31753175
<ConnectedApp />
31763176
</ProviderMock>
@@ -3201,7 +3201,7 @@ describe('React', () => {
32013201
const App = ({ counter }) => <div>Count: {counter}</div>
32023202
const ConnectedApp = connect(appMapState)(App)
32033203

3204-
const tester = rtl.render(
3204+
rtl.render(
32053205
<ProviderMock store={store}>
32063206
<ConnectedApp />
32073207
</ProviderMock>

0 commit comments

Comments
 (0)