Skip to content

Commit ef06df1

Browse files
committed
Update documentation
1 parent 875c6dd commit ef06df1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/components/center.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Callout
1+
# Center
22

33
Use the center component to horizontally center an element within its container. This is most commonly used for images.
44

docs/setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ Your `.babelrc` should look like this:
2828

2929
## Usage
3030

31-
To convert your React-powered email into a plain HTML email, use ReactDOM's `renderToString()` function, which converts a React component into a string of HTML.
31+
To convert your React-powered email into a plain HTML email, use ReactDOM's `renderToStaticMarkup()` function, which converts a React component into a string of HTML.
3232

3333
In the below example, our email template component includes a prop, making its contents dynamic.
3434

3535
```jsx
3636
import Inky, { Container, Row, Column } from 'react-inky';
37-
import { renderToString } from 'react-dom/server';
37+
import { renderToStaticMarkup } from 'react-dom/server';
3838

3939
function EmailTemplate({ name }) {
4040
return (
@@ -46,7 +46,7 @@ function EmailTemplate({ name }) {
4646
);
4747
}
4848

49-
renderToString((
49+
renderToStaticMarkup((
5050
<Inky>
5151
<Inky.Head>
5252
<link rel="stylesheet" href="style.css" />

0 commit comments

Comments
 (0)