andreypopp / andreypopp/react-async
render with only component markup
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 440
- Fork
- 24
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
For server-side rendering, it would be useful to have a render method that only returns markup specified by components, without `data-reactid` attributes and `window.__reactAsyncStatePacket`, like `React.renderToStaticMarkup`.
Using `renderComponentToStringWithAsyncState` gives the warning:
```
Warning: ReactAsync.renderComponentToStringWithAsyncState will be deprecated in a future version. Use ReactAsync.renderToStringAsync instead.
```
Is there a way of achieving this, or one in the works?
Related: #14 #15
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.