Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmd-deploy committed Jun 11, 2021
1 parent ec3f5c6 commit 0d199d6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# A JSX Primer Module#76
# A JSX Primer Module#76 :skull:

[![hackmd-github-sync-badge](https://hackmd.io/mCh4Q1KMRdiSjC7U-xrA7w/badge)](https://hackmd.io/mCh4Q1KMRdiSjC7U-xrA7w)

Expand Down Expand Up @@ -76,12 +76,3 @@ const Button = () => {
return <button className="button">A button</button>
}
```
In order to import the stylesheet into your React project this is how it's done so that WebPack will bundle it up.

`import '.style.css'`

To add an inline style to an element:
`const Button = () => {
return <button style={{ backgroundColor: 'yellow' }}>A button</button>
}
`

0 comments on commit 0d199d6

Please sign in to comment.