Skip to content

Commit

Permalink
Add comment denoting the file name within snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
calaway committed May 31, 2019
1 parent ed605ea commit 2f4cbd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/react/en/composite-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ Now check Storybook for the new `TaskList` stories.
Our component is still rough but now we have an idea of the stories to work toward. You might be thinking that the `.list-items` wrapper is overly simplistic. You're right – in most cases we wouldn’t create a new component just to add a wrapper. But the **real complexity** of `TaskList` component is revealed in the edge cases `withPinnedTasks`, `loading`, and `empty`.

```javascript
// src/components/TaskList.js

import React from 'react';

import Task from './Task';
Expand Down

0 comments on commit 2f4cbd3

Please sign in to comment.