summaryrefslogtreecommitdiff
path: root/examples/subpath/src/components/Time.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/subpath/src/components/Time.jsx')
-rw-r--r--examples/subpath/src/components/Time.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/subpath/src/components/Time.jsx b/examples/subpath/src/components/Time.jsx
new file mode 100644
index 000000000..8172b77dd
--- /dev/null
+++ b/examples/subpath/src/components/Time.jsx
@@ -0,0 +1,7 @@
+import React from 'react';
+
+export default function() {
+ const date = new Date();
+ const format = new Intl.DateTimeFormat('en-US');
+ return <time>{format.format(date)}</time>
+} \ No newline at end of file