WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

1.2K
doctype html
html
 head
  script
   :babel
    export const ReactComponent = props => pug`
     .wrapper
      if props.shouldShowGreeting
       p.greeting Hello World!
      button(onClick=props.notify) Click Me
    `

The .babelrc is

{"presets":["env","react"],
 "plugins":["transform-react-jsx","transform-react-pug"]
}

Anyone capable, I'd like to see what time you get.

$ time pug test.pug

real    0m16.556s
user    0m2.382s
sys     0m0.455s
doctype html html head script :babel export const ReactComponent = props => pug` .wrapper if props.shouldShowGreeting p.greeting Hello World! button(onClick=props.notify) Click Me ` The .babelrc is {"presets":["env","react"], "plugins":["transform-react-jsx","transform-react-pug"] } Anyone capable, I'd like to see what time you get. $ time pug test.pug real 0m16.556s user 0m2.382s sys 0m0.455s

(post is archived)

[–] 0 pt (edited )
[–] 0 pt

Infinite nesting dolls from hell is what that is.