577177db486e8973f1cc868082b031d2561f5d87214bd2cbfaefd6a23ae91e684859b96cb563c0f9c10ae28a6100c428af5ca2970ac0b644893e92bc9f4297 284 B

1234567891011
  1. /* @flow */
  2. import { escape } from '../util'
  3. import { genClassForVnode } from 'web/util/index'
  4. export default function renderClass (node: VNodeWithData): ?string {
  5. const classList = genClassForVnode(node)
  6. if (classList !== '') {
  7. return ` class="${escape(classList)}"`
  8. }
  9. }