Skip to content

renderFullPage(html) oder renderFullPage(html, greeting) ? (S.215) #17

@plishas

Description

@plishas

Verstehe ich etwas falsch oder hat keiner vor mir diese Beispiele ausprobiert?

Fehlt da nicht ein Parameter in dem Beispiel auf der Seite 215?

`reply(renderFullPage(html)) ---> reply(renderFullPage(html, greeting));

In dem Quelcode steht:

<script>
    window.__INITIAL_STATE__ = undefined;
</script>

und in der console die Fehlermeldung:

Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:
 (client) shkw"><input value="World" data-reactid=
 (server) shkw"><input value="Hello" data-reactid=
warning @ warning.js:45
_mountImageIntoNode @ ReactMount.js:807
ReactMount__mountImageIntoNode @ ReactPerf.js:66
mountComponentIntoNode @ ReactMount.js:268
perform @ Transaction.js:136
batchedMountComponentIntoNode @ ReactMount.js:282
perform @ Transaction.js:136
batchedUpdates @ ReactDefaultBatchingStrategy.js:62
batchedUpdates @ ReactUpdates.js:94
_renderNewRootComponent @ ReactMount.js:476
ReactMount__renderNewRootComponent @ ReactPerf.js:66
_renderSubtreeIntoContainer @ ReactMount.js:550
render @ ReactMount.js:570
React_render @ ReactPerf.js:66
(anonymous) @ main.js:8
__webpack_require__ @ bootstrap 1f26aee…:19
(anonymous) @ bootstrap 1f26aee…:39
(anonymous) @ bootstrap 1f26aee…:39

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions