Home / Function/ renderAttrs() — vue Function Reference

renderAttrs() — vue Function Reference

Architecture documentation for the renderAttrs() function in runtime-helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  431f70cc_3eff_e6e1_c18a_d3173ac7370f["renderAttrs()"]
  a0b4404b_fb84_98b3_4f7a_375b041a7128["renderAttrs()"]
  431f70cc_3eff_e6e1_c18a_d3173ac7370f -->|calls| a0b4404b_fb84_98b3_4f7a_375b041a7128
  cb42e4b3_e1a0_95d1_b1c5_765852d601cc["isSSRUnsafeAttr()"]
  431f70cc_3eff_e6e1_c18a_d3173ac7370f -->|calls| cb42e4b3_e1a0_95d1_b1c5_765852d601cc
  5a73be1a_07f5_5a0a_d729_edcdc84b830c["renderAttr()"]
  431f70cc_3eff_e6e1_c18a_d3173ac7370f -->|calls| 5a73be1a_07f5_5a0a_d729_edcdc84b830c
  style 431f70cc_3eff_e6e1_c18a_d3173ac7370f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts lines 110–119

function renderAttrs(obj: Object): string {
  let res = ''
  for (const key in obj) {
    if (isSSRUnsafeAttr(key)) {
      continue
    }
    res += renderAttr(key, obj[key])
  }
  return res
}

Subdomains

Frequently Asked Questions

What does renderAttrs() do?
renderAttrs() is a function in the vue codebase.
What does renderAttrs() call?
renderAttrs() calls 3 function(s): isSSRUnsafeAttr, renderAttr, renderAttrs.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free