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)