TypeScript VS Jquery using for Razor page

Htet Lin 51 Reputation points
2020-12-03T00:46:45.613+00:00

Now I am developging using the Razor page with .Net Core . Please help me to to suggest
Shoud i used Typescript ro JQuery which one shoud i use ? Please advise . Thank you .

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,167 questions
{count} vote

Accepted answer
  1. Jerry Cai-MSFT 991 Reputation points
    2020-12-03T03:30:23.76+00:00

    Hi,HtetLin-7338

    It's up to you, if you are used to using TypeScript, you can still use it because .net core supports it and it will be more suitable for creating

    large scale JavaScript-based applications.

    JQuery is a fast and concise JavaScript Library. About the difference and benefits about TypeScript and Jquery, you can check more details in following link:

    difference-between-typescript-and-javascript

    what-is-typescript

    Best Regards,
    Jerry Cai


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    3 people found this answer helpful.
    0 comments No comments

12 additional answers

Sort by: Most helpful
  1. Bharatkumar Ghode 5 Reputation points
    2023-07-20T07:48:36.7966667+00:00

    Consider your project requirements, team expertise, and long-term goals when choosing. Both languages have their merits, and understanding their differences empowers you to make an informed decision that aligns with your project's needs. So, weigh your options and choose the language best suits your project requirements.

    for more information comparison JavaScript vs Typescript

    1 person found this answer helpful.
    0 comments No comments

  2. Ravindrasinh Chavda 5 Reputation points
    2023-11-24T06:25:08.9366667+00:00

    When you're trying to decide between TypeScript and jQuery, it's important to understand how they work and what they're best suited for. jQuery is great for simple projects that require fast development and easy interactions. It simplifies HTML document traversal and manipulation, event handling, and animation. However, it's not as up-to-date as some of the newer JS technologies, so it might not be the best choice for modern web development.

    On the other hand, TypeScript is a more advanced version of JavaScript that includes features like static typing and interfaces. It makes code easier to maintain, catches errors early on, and improves developer productivity. This makes it a good choice for larger, more complex projects that require scalability and maintainability. If you're working on a smaller project with straightforward interactions, jQuery might be a quicker and easier solution. But if you need something more powerful and modern, TypeScript is the way to go.

    When it comes to integrating Razorpay into your web applications, you can use either TypeScript or jQuery - it all depends on your project's architecture and requirements. Razorpay provides client-side SDKs for JavaScript, so both technologies work seamlessly with it. TypeScript is great if you need static typing and other advanced features, especially if you're using modern frameworks like Angular or React. jQuery is still a good choice for smaller projects or if you're already using it in your application.

    Ultimately, the choice between TypeScript and jQuery comes down to your specific needs and preferences. If you want something lightweight and easy to use, go for jQuery. But if you need something more powerful and modern, TypeScript is the better choice. To learn more about the differences between the two, check out "Why developers love TypeScript?". - it's a great resource that provides a detailed comparison and insights into when to use each based on project requirements.

    1 person found this answer helpful.

  3. Nirpat Choudhary 10 Reputation points
    2023-12-22T12:11:27.3766667+00:00

    If you're wondering whether to use TypeScript or jQuery on a Razor page, it's important to consider their differences. While jQuery is a useful tool for adding interactivity to web pages, TypeScript can help you write cleaner and more maintainable code thanks to its static typing, classes, and interfaces. Plus, it offers better tooling support. If you're looking to create a scalable and efficient codebase, TypeScript is the way to go. However, if you want to quickly add simple interactivity to your page, jQuery might be a better choice. You may even consider using both together to take advantage of their respective strengths and create a more robust project.

    1 person found this answer helpful.

  4. Nirpat Choudhary 10 Reputation points
    2024-01-17T09:34:50.1333333+00:00

    For Razor Pages, TypeScript is recommended over jQuery for several reasons. Few reasons to adopt TypeScript are:

    • Type Safety

    • Modern Development

    • Integration with ASP.NET

    • Maintainability and Scalability

    • Community and Support

    In summary, TypeScript is a more modern, type-safe, and maintainable choice for developing Razor Pages. It offers better integration with ASP.NET and aligns with contemporary web development practices.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.