andreypopp / andreypopp/react-async

render with only component markup

オープン
#48 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
440
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。