IK
Interview Knowledge Book
Topics
Practice
Examples
Playground
RU
browser
Server/client boundary payload
Show the shape of data that crosses from server work to an interactive client component.
index.js
function serverComponent() { const post = { id: 'p1', title: 'Caching', save: () => 'server only' }; console.log('server selected id', post.id); return { id: post.id, title: post.title }; } const clientProps = serverComponent(); console.log('client props serializable', JSON.stringify(clientProps).includes('Caching'));
Run
Stop
Reset