Skip to content

Commit 491adbc

Browse files
committed
Fix wording of native
1 parent d78567c commit 491adbc

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/website/pages/getting-started/native.mdx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ opam install styled-ppx
1919
### Packages available
2020

2121
- `styled-ppx` is the ppx to transform `[%styled.div ""]` and `[%cx ""]`
22-
- `styled-ppx.native` is the library with the CSS bindings, and the implementation of `emotion.sh` on the server. Capable of storing CSS, hashing it and generating a unique classnames, autoprefixing, etc.
22+
- `styled-ppx.native` is the library with the CSS bindings, and the implementation of `emotion.sh` on the server: capable of storing CSS, hashing it, generating a unique classnames, and autoprefixing
2323

2424
### Usage
2525

26-
Add `styled-ppx` under dune's preprocess pps for any library or executable. Add `styled-ppx.native` as libraries.
26+
Add `styled-ppx` under dune's preprocess pps for any library or executable; and add `styled-ppx.native` as a library. Regardless of being a library or executable:
2727

2828
```diff
2929
(library
@@ -34,20 +34,17 @@ Add `styled-ppx` under dune's preprocess pps for any library or executable. Add
3434
(preprocess
3535
(pps
3636
+ styled-ppx
37-
melange.ppx
3837
server-reason-react-ppx)))
3938
```
4039

4140
```diff
42-
(melange.emit
43-
(target ...)
41+
(executable
4442
(libraries
4543
+ styled-ppx.native
4644
server-reason-react)
4745
(preprocess
4846
(pps
4947
+ styled-ppx
50-
melange.ppx
5148
server-reason-react-ppx)))
5249
```
5350

@@ -56,7 +53,7 @@ Note: `server-reason-react` and `server-reason-react-ppx` are optional, and only
5653
### API
5754

5855
- `CSS.get_stylesheet` returns a string with all styles
59-
- `CSS.style_tag` returns a `<style />` React element, with all styles. This is designed to be used with server-reason-react.
56+
- `CSS.style_tag` returns a `<style />` React element, with all styles. This is designed to be used with server-reason-react
6057

6158
### Example
6259

0 commit comments

Comments
 (0)