Giter VIP home page Giter VIP logo

Comments (8)

mjackson avatar mjackson commented on May 6, 2024

Thanks for opening this issue, @nicolasrenon.

In short, our goal in Remix is to seamlessly support both JavaScript and TypeScript. If you name a file with a .ts or .tsx extension, we will treat it as TypeScript (.tsx is for TypeScript files with JSX in them). But it isn't required. You can write all your files as .js files if you don't want TypeScript.

Right now we will automatically compile any .ts and .tsx files in the app directory. In the starter-express repo, we also support .ts and .tsx files in the loaders directory, though we just use tsc to compile them directly instead of our own compiler. This will probably change in the near future.

I agree that we should update the docs with more info about this, so I'll leave this issue open to remind me to do that at some point. Hopefully this explanation helps for now! Happy to answer any questions you may still have.

from remix.

nicolasrenon avatar nicolasrenon commented on May 6, 2024

Thanks @mjackson !
Keep up the good work 👍

from remix.

Anishpras avatar Anishpras commented on May 6, 2024

@mjackson Can I work on this issue?

from remix.

mjackson avatar mjackson commented on May 6, 2024

@Anishpras You should ask @kentcdodds. He's the one heading up our documentation efforts. I'm not sure if he'd prefer a separate page about this or what.

from remix.

kentcdodds avatar kentcdodds commented on May 6, 2024

I think we should have a page under "Guides" called "TypeScript" that describes basically what @mjackson said. @Anishpras, you can go ahead and get things started if you don't mind me making edits to whatever you write :)

from remix.

Anishpras avatar Anishpras commented on May 6, 2024

@kentcdodds Okay! Will start ASAP.

from remix.

Anishpras avatar Anishpras commented on May 6, 2024

@kentcdodds I have opened a PR for the issue discussed above PR 1378.

from remix.

kentcdodds avatar kentcdodds commented on May 6, 2024

Thanks everyone! https://remix.run/docs/en/v1/guides/typescript

from remix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.