]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: readme
authorEvan You <yyx990803@gmail.com>
Tue, 18 Feb 2020 19:56:18 +0000 (14:56 -0500)
committerEvan You <yyx990803@gmail.com>
Tue, 18 Feb 2020 19:56:53 +0000 (14:56 -0500)
README.md
packages/server-renderer/README.md

index 5662be8659c6f0f7134a876a1922c156b187fb7f..e69835be8df6e590cf5c60bad8c76e2653144df3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -4,10 +4,16 @@
 
 The current codebase has basic feature parity with v2.x, together with the changes proposed in [merged RFCs](https://github.com/vuejs/rfcs/pulls?q=is%3Apr+is%3Amerged+label%3A3.x). There is a simple webpack-based setup with Single-File Component support available [here](https://github.com/vuejs/vue-next-webpack-preview).
 
-At this stage, the only major work left is server-side rendering, which we are actively working on. In the meanwhile, we would like our users to start building small experimental apps using the alpha releases to help us identify bugs and stabilize the implementation.
-
 Please note that there could still be undocumented behavior inconsistencies with 2.x. When you run into such a case, please make sure to first check if the behavior difference has already been proposed in an existing RFC. If the inconsistency is not part of an RFC, then it's likely unintended, and an issue should be opened (please make sure to use the [issue helper](https://new-issue.vuejs.org/?repo=vuejs/vue-next) when opening new issues).
 
+## TODOs as of 3.0.0-alpha.5
+
+- Suspense support in SSR
+- SSR Hydration mismatch handling
+- SSR vnode directive support
+- SSR integration tests
+- 2.x compatible async component support
+
 ## Known Issues
 
 - There is currently no way to attach custom instance properties via `Vue.prototype`.
index 4ce66fb586179120ea910a1141f7dc240fae2ce0..23831e51d3b4a1acc81b221cf95d7c3bed5bcc9b 100644 (file)
@@ -1 +1,16 @@
 # @vue/server-renderer
+
+``` js
+const { createSSRApp } = require('vue')
+const { renderToString } = require('@vue/server-renderer')
+
+const app = createSSRApp({
+  data: () => ({ msg: 'hello' }),
+  template: `<div>{{ msg }}</div>`
+})
+
+;(async () => {
+  const html = await renderToString(app)
+  console.log(html)
+})()
+```