on master help sign in
Fill out doc comment for `JsRender::new`
ca87755Nick Fitzgerald
crates/js-api/src/lib.rs+5−1
@@ -203,7 +203,11 @@ impl VdomWeak {
203}
203}
204
204
205impl JsRender {
205impl JsRender {
206− /// TODO
206+ /// Convert a `js_sys::Object` into a `JsRender`.
207+ ///
208+ /// The given object must have a `render` method that conforms to the
209+ /// duck-typed virtual DOM interface which is described in the crate-level
210+ /// documentation.
207 pub fn new<O>(object: O) -> JsRender
211 pub fn new<O>(object: O) -> JsRender
208 where
212 where
209 O: Into<Object>,
213 O: Into<Object>,