Skip to content

Commit 7742450

Browse files
committed
style: italicize optional params
1 parent 9221343 commit 7742450

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Insert description and implementation here
8686
ReactCC gives you access to all four of React 16's server-side rendering methods, as well as additional functionality. ReactCC methods are described below.
8787

8888
### ComponentCache
89-
- `size`: (Optional) An integer representing the maximum size (in characters) of the cache. Defaults to 1 million.
89+
- `size`: (*Optional*) An integer representing the maximum size (in characters) of the cache. Defaults to 1 million.
9090

9191
**Example:**
9292
```javascript
@@ -96,7 +96,7 @@ const cache = new ReactCC.ComponentCache();
9696
### renderToString
9797
- `component`: The React component being rendered.
9898
- `cache`: The component cache
99-
- `memLife`: (Only if using Memcached) A number representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
99+
- `memLife`: (*Only if using Memcached*) A number representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
100100

101101
**Example:**
102102
```javascript
@@ -106,7 +106,7 @@ ReactCC.renderToString(<App />, cache);
106106
### renderToStaticMarkup
107107
- `component`: The React component being rendered.
108108
- `cache`: The component cache
109-
- `memLife`: (Only if using Memcached) An integer representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
109+
- `memLife`: (*Only if using Memcached*) An integer representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
110110

111111
**Example:**
112112
```javascript
@@ -116,7 +116,7 @@ ReactCC.renderToStaticMarkup(<App />, cache);
116116
### renderToNodeStream
117117
- `component`: The React component being rendered.
118118
- `cache`: The component cache
119-
- `memLife`: (Only if using Memcached) An integer representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
119+
- `memLife`: (*Only if using Memcached*) An integer representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
120120

121121
**Example:**
122122
```javascript
@@ -126,7 +126,7 @@ ReactCC.renderToNodeStream(<App />, cache);
126126
### renderToStaticNodeStream
127127
- `component`: The React component being rendered.
128128
- `cache`: The component cache
129-
- `memLife`: (Only if using Memcached) An integer representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
129+
- `memLife`: (*Only if using Memcached*) An integer representing the lifetime (in seconds) of each Memcached entry. Defaults to 0.
130130

131131
**Example:**
132132
```javascript

0 commit comments

Comments
 (0)