andreypopp / andreypopp/react-async

render with only component markup

Ouverte
#48 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
440
Forks
24
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.