Skip to content

Commit

Permalink
add note about helper functions and modules
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Apr 22, 2021
1 parent 689bae5 commit 0467521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STYLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Any array of styles associated with a single type of React element that has at l

## Inline Styles

**Inline styles are forbidden.** If we run into a case where we feel it's necessary to conditionally render some styles we should create a helper function and import it into `styles.js` then pass any modifying parameters to that function e.g.
**Inline styles are forbidden.** If we run into a case where we feel it's necessary to conditionally render some styles we should create a helper function then pass any modifying parameters to that function. Small helper functions can be written directly in `styles.js`, but larger, more complex methods should be put in their own modules and imported into `styles.js`.

```jsx
// Bad - Do not use inline styles
Expand Down

0 comments on commit 0467521

Please sign in to comment.