This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Inspired by Joy of Code's YouTube video: Different Ways To Share State in Svelte 5 | |
https://www.youtube.com/watch?v=qI31XOrBuY0 | |
--> | |
<script lang="ts" module> | |
// This could be `state.svelte.ts` | |
// A property of JavaScript: Imported values can only be modified by the exporter. | |
// Conversely, the importing module can only read the value but can't re-assign it. | |
export const proxied = $state({ value: 0 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# DISCLAIMER! Although this file *could* be executed, I recommend against running this whole file. | |
# This is because I have not added any error checking | |
# If, for example, you did not download the correct JRE file to your Downloads folder, or saved it elsewhere, this will likely move your home directory | |
# If you have ignored that and just want to run the file anyway (it's faster, after all) you'll need to do this in Terminal: | |
#cd ~/Downloads/ | |
#chmod +x install-jre-macosx-x64.sh | |
#sudo ./install-jre-macosx-x64.sh |