-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add readme when creating component for styleguide now
- Loading branch information
1 parent
7031637
commit 0801249
Showing
3 changed files
with
29 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
src/javascript/components/Navbar/readme.md → tasks/templates/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
Navbar example | ||
{{componentName}} example | ||
|
||
```jsx | ||
{{#reduxEnabled}} | ||
const store = require('./../../store').default; | ||
const { Provider } = require('react-redux'); | ||
|
||
<Provider store={store}> | ||
<Navbar /> | ||
{{/reduxEnabled}} | ||
|
||
<{{componentName}} /> | ||
|
||
{{#reduxEnabled}} | ||
</Provider> | ||
{{/reduxEnabled}} | ||
``` |