D
Deno

help

jsx in js

Bbit-by-bit9/8/2023
All of my files containing JSX are in .js files. Is there an easy fix for this when running?
IioB9/8/2023
Ideally the files would be .jsx, but you can always use the --ext flag to specify jsx manually i.e.
$ deno run --ext=jsx file.js
$ deno run --ext=jsx file.js
Bbit-by-bit9/8/2023
My original file is a JS one which imports App.js.. and that imports subcomponents. Do I need to rename everything?
IioB9/8/2023
Ideally yes, .js is semantically the wrong extension. If you're running unix, you can try https://unix.stackexchange.com/questions/708979/bash-recursive-rename-of-js-files-to-jsx to do this automatically. You can try https://gist.github.com/mustafaturan/32df16bb4c49fbd837f777000f4b9aa2 if you're on windows.
Bbit-by-bit9/8/2023
kk thanks. nah, running linux. not a big deal to rename everything

Looking for more? Join the community!

Recommended Posts
http errorI need help because I have a service that has more than 1 million requests per day and for about 7 ddoes Deno vscode support nesting `deno.json`?There is a project I'm working on has nesting `deno.json` files. The parent `deno.json` is a bit outDeploy says Worker not defined for ESBuild (wasm.js)@Deno AI Helper I am having trouble understanding how to get the esbuilder to work on Deno Deploy, udeno_tui Label-classHello. I just started testing around with deno_tui and found the DrawObject-Class. How do i actuallyCannot read file "src/deno.json": not implemented on jsHey @Deno AI Helper ! I'm having a bit of trouble, I'm trying to use `deno.land/x/import` to use nonError running Apollo example (on latest version)Hi. When I run this example with the latest version of apollo from npm I get errors: https://deno.Example Question for the Deno AI BotHey there - this is an example question for the Deno AI bot. How would I write a regular expression Does Deno support `export type` statements?Hello, we are using Deno + TS and I am getting the following error if I try to export a type from anHow can one patch a Deno dependency?Hello, We're used to working with node and using `patch-package` to override and fix packages fairlyError running program that uses `fp-ts` from npm (`Is a directory (os error 21)`)https://github.com/Industrial/test-fp-ls/blob/main/mod.ts When I run `deno run -A mod.ts` I get: `Can't "Sign in" to deno deployHi There, I can't sign in to deno deploy. The first time I try it works, and it sets up the GitHub ADoes Deno NPM support other registries like github npm registry?Does Deno NPM support other registeries like github and if so, does it support private registeries?