Skip to content

Commit

Permalink
docs(readme): update react dev tools description
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandszoke authored and solkimicreb committed Mar 13, 2020
1 parent 414cf62 commit 8830963
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,11 @@ This is not necessary if you use React Router 4.4+. You can find more details an
<summary>Usage with React Developer Tools.</summary>
<p></p>

If you want React Developer Tools to recognize your reactive view components with names, you have to pass a **named component** to the `view` wrapper function instead of an anonymous one.
If you want React Developer Tools to recognize your reactive view components' names, you have to pass either a **named function** or an anonymous function with **name inference** to the `view` wrapper.

```jsx
import React from 'react';
import { view, store } from 'react-easy-state';
import Table from 'rc-table';
import cloneDeep from 'lodash/cloneDeep';

const user = store({
name: 'Rick',
Expand Down

0 comments on commit 8830963

Please sign in to comment.