Skip to content

Commit 2e41ef4

Browse files
committed
Updated README.md
1 parent 13b67d9 commit 2e41ef4

File tree

2 files changed

+39
-42
lines changed

2 files changed

+39
-42
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const Updates = () => (
6464
);
6565

6666
ReactXpress.render(<ExpressApp />);
67-
6867
```
6968

7069
### How to use
@@ -76,13 +75,16 @@ ReactXpress.render(<ExpressApp />);
7675

7776
### Components
7877

79-
`<app />` - App Instance (props: port)
80-
<br/>
81-
`<static />` - Static route (props: publicPath, path, options)
82-
<br/>
83-
`<router />` - Router-Provider (props: path)
84-
<br/>
85-
`<get />, <post /> and ...` - Route component (props: path, content, handler, status)
78+
`<App />` - App Instance (props: port)
79+
`<Static />` - Static route (props: publicPath, path, options)
80+
`<Router />` - Router-Provider (props: path)
81+
`<Get />, <Post /> and ...` - Route component (props: path, content, handler, status)
82+
`<Res />` - Response components
83+
`<Res.Render />` - Render (props: component)
84+
`<Res.Content />` - Response send (props: json, text, contentType)
85+
`<Res.Status />` - Response Status (props: statusCode)
86+
`<Res.SendFile />` - Response Send File (props: path, options, onError)
87+
`<Res.Redirect />` - Redirect (props: path, statusCode)
8688
<br />
8789
<br />
8890

src/pages/ComponentsPage.js

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,35 @@ export const ComponentsPage = () => (
1010
</Helmet>
1111
<Wrapper>
1212
<p>
13-
<p>
14-
<span>{`<App />`}</span> - App Instance (props: port)
15-
</p>
16-
<p>
17-
<span>{`<Static />`}</span> - Static route (props: publicPath, path, options)
18-
</p>
19-
<p>
20-
<span>{`<Router />`}</span> - Router-Provider (props: path)
21-
</p>
22-
<p>
23-
<span>{`<Get />, <Post /> and ...`}</span> - Route component (props: path, content,
24-
handler, status)
25-
</p>
26-
<p>
27-
<span>{`<Res />`}</span> - Response components
28-
</p>
29-
<p>
30-
<span>{`<Res />`}</span> - Response components
31-
</p>
32-
<p>
33-
<span>{'- <Res.Render />'}</span> - Render (props: component){' '}
34-
</p>
35-
<p>
36-
<span>{'- <Res.Content />'}</span> - Render (props: json, text, contentType){' '}
37-
</p>
38-
<p>
39-
<span>{'- <Res.Status />'}</span> - Render (props: statusCode){' '}
40-
</p>
41-
<p>
42-
<span>{'- <Res.Redirect />'}</span> - Render (props: path, statusCode){' '}
43-
</p>
44-
<p>
45-
<span>{'- <Res.SendFile />'}</span> - Render (props: path, options, onError){' '}
46-
</p>
13+
<span>{`<App />`}</span> - App Instance (props: port)
14+
</p>
15+
<p>
16+
<span>{`<Static />`}</span> - Static route (props: publicPath, path, options)
17+
</p>
18+
<p>
19+
<span>{`<Router />`}</span> - Router-Provider (props: path)
20+
</p>
21+
<p>
22+
<span>{`<Get />, <Post /> and ...`}</span> - Route component (props: path, content, handler,
23+
status)
24+
</p>
25+
<p>
26+
<span>{`<Res />`}</span> - Response components
27+
</p>
28+
<p>
29+
<span>{`<Res.Render />`}</span> - Render (props: component)
30+
</p>
31+
<p>
32+
<span>{`<Res.Content />`}</span> - Response send (props: json, text, contentType)
33+
</p>
34+
<p>
35+
<span>{`<Res.Status />`}</span> - Response Status (props: statusCode)
36+
</p>
37+
<p>
38+
<span>{`<Res.SendFile />`}</span> - Response Send File (props: path, options, onError)
39+
</p>
40+
<p>
41+
<span>{`<Res.Redirect />`}</span> - Redirect (props: path, statusCode)
4742
</p>
4843
<br />
4944
<code>Sorry for this, better page is in process...</code>

0 commit comments

Comments
 (0)