diff options
author | 2021-11-15 10:33:51 -0500 | |
---|---|---|
committer | 2021-11-15 10:33:51 -0500 | |
commit | fca1a99dbdcc32aa130de29917629ad2fa397369 (patch) | |
tree | 9fd17a9afaec2a08f622209f1bea8ff158d38f91 /examples/subpath/src/components/Time.jsx | |
parent | a8b428ca27fd596bc331cdbb7a0388db1d052d55 (diff) | |
download | astro-fca1a99dbdcc32aa130de29917629ad2fa397369.tar.gz astro-fca1a99dbdcc32aa130de29917629ad2fa397369.tar.zst astro-fca1a99dbdcc32aa130de29917629ad2fa397369.zip |
Support for using a subpath (#1801)
* Support for using a subpath
* Update the readme
* Fix the package name
* Adds a changeset
* Ensure that public/ must be loaded from the subpath
* Update preview to use the new paths
* Use exact compiler version
* Use the newest version
* Use range again
* Use newer range
Diffstat (limited to 'examples/subpath/src/components/Time.jsx')
-rw-r--r-- | examples/subpath/src/components/Time.jsx | 7 |
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 |