babel-plugin-dayjs-jsx
v0.1.2
Published
dayjs helper for jsx
Downloads
6
Readme
Configuration
babel.config.json
{
"plugins": [
[
"babel-plugin-dayjs-jsx",
{
"tag": "day", //By default
"format": "YYYY-MM-DD HH:mm:ss"
}
]
]
}
day.d.ts
/// <reference types="babel-plugin-dayjs-jsx/client" />
SomeComponent.{tsx, jsx}
// YYYY-MM-DD HH:mm:ss
<day>{new Date()}</day>