Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Moment.js
Moment.js

3K
141
+ 1
0
React
React

28.1K
20K
+ 1
3.4K
Add tool

momentjs vs React: What are the differences?

What is momentjs? A JavaScript date library for parsing, validating, manipulating, and formatting dates. A javascript date library for parsing, validating, manipulating, and formatting dates.

What is React? A JavaScript library for building user interfaces. Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.

momentjs and React can be categorized as "Javascript UI Libraries" tools.

React is an open source tool with 132K GitHub stars and 24.5K GitHub forks. Here's a link to React's open source repository on GitHub.

Airbnb, Uber Technologies, and Facebook are some of the popular companies that use React, whereas momentjs is used by OneWire, PassionDig, and mingdao. React has a broader approval, being mentioned in 3224 company stacks & 3092 developers stacks; compared to momentjs, which is listed in 34 company stacks and 22 developer stacks.

- No public GitHub repository available -

What is Moment.js?

A javascript date library for parsing, validating, manipulating, and formatting dates.

What is React?

Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Moment.js?
Why do developers choose React?
    Be the first to leave a pro

    Sign up to add, upvote and see more prosMake informed product decisions

      Be the first to leave a con
      What companies use Moment.js?
      What companies use React?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Moment.js?
      What tools integrate with React?
        No integrations found

        Sign up to get full access to all the tool integrationsMake informed product decisions

        What are some alternatives to Moment.js and React?
        Modernizr
        It’s a collection of superfast tests or detects as we like to call them which run as your web page loads, then you can use the results to tailor the experience to the user. It tells you what HTML, CSS and JavaScript features the user’s browser has to offer.
        Modernizr
        It’s a collection of superfast tests or detects as we like to call them which run as your web page loads, then you can use the results to tailor the experience to the user. It tells you what HTML, CSS and JavaScript features the user’s browser has to offer.
        fancybox
        It is a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages. It is built on the top of the popular JavaScript framework jQuery and is both easy to implement and a snap to customize.
        Lodash
        A JavaScript utility library delivering consistency, modularity, performance, & extras. It provides utility functions for common programming tasks using the functional programming paradigm.
        Underscore
        A JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.
        See all alternatives
        Decisions about Moment.js and React
        GitHub
        GitHub
        nginx
        nginx
        ESLint
        ESLint
        AVA
        AVA
        Semantic UI React
        Semantic UI React
        Redux
        Redux
        React
        React
        PostgreSQL
        PostgreSQL
        ExpressJS
        ExpressJS
        Node.js
        Node.js
        FeathersJS
        FeathersJS
        Heroku
        Heroku
        Amazon EC2
        Amazon EC2
        Kubernetes
        Kubernetes
        Jenkins
        Jenkins
        Docker Compose
        Docker Compose
        Docker
        Docker
        #Containerized
        #Containers
        #Backend
        #Stack
        #Frontend

        Recently I have been working on an open source stack to help people consolidate their personal health data in a single database so that AI and analytics apps can be run against it to find personalized treatments. We chose to go with a #containerized approach leveraging Docker #containers with a local development environment setup with Docker Compose and nginx for container routing. For the production environment we chose to pull code from GitHub and build/push images using Jenkins and using Kubernetes to deploy to Amazon EC2.

        We also implemented a dashboard app to handle user authentication/authorization, as well as a custom SSO server that runs on Heroku which allows experts to easily visit more than one instance without having to login repeatedly. The #Backend was implemented using my favorite #Stack which consists of FeathersJS on top of Node.js and ExpressJS with PostgreSQL as the main database. The #Frontend was implemented using React, Redux.js, Semantic UI React and the FeathersJS client. Though testing was light on this project, we chose to use AVA as well as ESLint to keep the codebase clean and consistent.

        See more
        ASP.NET
        ASP.NET
        Puppeteer
        Puppeteer
        vuex
        vuex
        ExpressJS
        ExpressJS
        React
        React
        Angular 2
        Angular 2
        Vue.js
        Vue.js
        Netlify
        Netlify
        Heroku
        Heroku
        #Heroku
        #Seo

        I found Heroku to be a great option to get ExpressJS up and running with very little hustle. The free tier is great, but I'd recommend to set up a cronjob to visit your site every few minutes so that the server stays awake. Netlify was the option to host the front-end because doing the server side rendering on #Heroku would have taken a little more time than I'd like to. For the moment pre-rendering the app with prerender-spa-plugin is enough to help with #seo. Puppeteer was my choice over other options because it made it easier to scrape websites made on ASP.NET which is what I needed in this case. And Vue.js is my top choice at the moment because it's really beginner friendly and it has a lot of the features I like about Angular 2 and React. vuex is a must in most of the app I build.

        See more
        Buzz Zhang
        Buzz Zhang
        React
        React
        Angular 2
        Angular 2
        Vue.js
        Vue.js

        For those who want to develop business in China, Vue.js would be your first choice. I never thought Vue.js is better than Angular 2 or React , but for project language choosing, sometimes you should not only consider technology advance, but also must consider human resource market.

        In China, there are far more engineers familiar with Vue.js than React and Angular, that means you can easily hire some front end engineers with much cheaper price. The reason why Vue.js is so popular in China is just because the community, as Vue.js author You Yuxi is Chinese, the community around Vue.js is mainly in Chinese language and most engineers speaks Mandarin, thus they can get questions and problems solved at first time.

        From technical side, Vue.js is more like a simplified Angular, syntax are mostly same, ng-if became v-if, ng-for became v-for. The most convenience part is Vue.js put html+js+css in one single vue file so that you will not have to create a separate folder to include 3 files as Angular does.

        To be frankly, I love Vue.js especially when I need to quickly create a small project contains only 1 or 2 pages even 5 pages, Vue.js would be the best choice, it's small and fast. For a really big and huge project, I will consider Angular, after all, there are far more complicated and interesting plugins to play with, Angular need more time, more code, more complex, but we senior engineer is living for some sophisticated code which only we can understand and set barriers for other beginners, right?

        See more
        Ido Shamun
        Ido Shamun
        at The Elegant Monkeys · | 5 upvotes · 16.2K views
        atDailyDaily
        Polymer
        Polymer
        React
        React
        Vue.js
        Vue.js
        #Frontend

        For developing our #frontend applications, we decided to use Vue.js . Being such an easy to learn library, compared to React for example, it made everything so easy. At first we started with Polymer but the existing tooling and small community at the time made us look for alternatives.

        See more
        React
        React

        I use React because I think it is the one that embraces the most the functional component design.

        New versions of React are on the right track.

        Having to work with Vue or Angular is a lot of pain for me, especially because I'm used to the simplicity of React (which comes with the great price of a high learning curve). Also, the use of the Flux Pattern is so much easier with React, being designed as a one way data flow, than with its two foremost competitors.

        Cheers to the React Team, and thank you very much !

        See more
        Rory Womack
        Rory Womack
        Software Engineer at Relatient · | 3 upvotes · 2K views
        React
        React
        Vue.js
        Vue.js
        Angular 2
        Angular 2

        I recommend using Angular 2 when moving from Angular 1 if you are looking for a fully featured framework solution. Neither Vue.js nor React just work out of the box and require creating your own components from scratch as well as the kind of support architecture available in Angular 2 out of the box. However if you are looking for something lightweight to add reusable components to an existing application Vue.js and React are more ideal to that end.

        See more
        React
        React

        I use React because it provides a high level of flexibility to architecture the front end app having the posibility or not to incorporate other libraries such as State Management, Routing or Form Validation, among others. Unidirectional flow and component reutilization is another important advantage.

        See more
        Rafael Santos
        Rafael Santos
        CTO at Decision6 · | 11 upvotes · 14K views
        atDecision6Decision6
        Vue.js
        Vue.js
        React
        React
        AngularJS
        AngularJS

        Back in 2015, my company had a back-office dashboard that was originally built in AngularJS 1. Since Angular 2 presented drastic changes we decided to rethink the options and we looked at React and Vue.js. Besides, at the time, Vue had basically only one developer, its structure (100% oriented to components) and also its backward compatibility focus (Angular 1 to 2 no more) we preferred it against React cause it seemed more straightforward, clean and with a small learning curve. Now 4-5 years later we are very happy with our choice.

        See more
        React
        React
        Vue.js
        Vue.js

        I find using Vue.js to be easier (more concise / less boilerplate) and more intuitive than writing React. However, there are a lot more readily available React components that I can just plug into my projects. I'm debating whether to use Vue.js or React for an upcoming project that I'm going to use to help teach a friend how to build an interactive frontend. Which would you recommend I use?

        See more
        Johnny Bell
        Johnny Bell
        Senior Software Engineer at StackShare · | 14 upvotes · 811 views
        React
        React
        Vue.js
        Vue.js

        I've used both Vue.js and React and I would stick with React. I know that Vue.js seems easier to write and its much faster to pick up however as you mentioned above React has way more ready made components you can just plugin, and the community for React is very big.

        It might be a bit more of a steep learning curve for your friend to learn React over Vue.js but I think in the long run its the better option.

        See more
        Mark Scott
        Mark Scott
        Personal Development at Mark Scott · | 3 upvotes · 0 views
        React
        React
        Vue.js
        Vue.js

        Having developed in both Vue.js and React, I agree with your assessment of Vue. It does feel light and easier to understand and therefore learn. Seeing that Vue has some genetic roots with React, I would say start your friend out on Vue. If they need to learn React later, that should give them a good foundation. If you have a Pluralsight subscription, look for my course on Vue.js and feel free to use the demo project as a starting point.

        See more
        Thomas LEVEIL
        Thomas LEVEIL
        at Mediaveille · | 5 upvotes · 1 views
        React
        React
        Vue.js
        Vue.js

        I chose to use Vue.js a few years ago mainly for the easy learning curve. I have no experience with React, so I won't make any comparison here. Regarding available components, I never felt locked in because of Vue when looking for components. It happens that a component I wish to use is not available as a Vue component (and nobody published any Vue wrapper for it), but in such cases I was able to quickly hack a Vue wrapper component. In the end I don't think a decision to choose one framework over another should be made solely because of the number of components available. (And not all components in either framework is maintained, bug free, documented or easy to use)

        See more
        Oguzhan Cetin
        Oguzhan Cetin
        Senior Developer at Melantis · | 4 upvotes · 2 views
        JavaScript
        JavaScript
        Vue.js
        Vue.js
        React
        React

        React is great, Vue.js is also great. But I'm personally using React, because React is changing the way I look at how JavaScript should be. This is a really big plus for me. Vue is good, but it's just another alternative. Also, too many big companies are using React, that means you can trust it for big projects.

        See more
        Adebayo Akinlaja
        Adebayo Akinlaja
        Engineering Manager at Andela · | 13 upvotes · 22.4K views
        Bit
        Bit
        Create React App
        Create React App
        Material Kit
        Material Kit
        TypeScript
        TypeScript
        Evergreen
        Evergreen
        Material-UI
        Material-UI
        React
        React

        I picked up an idea to develop and it was no brainer I had to go with React for the frontend. I was faced with challenges when it came to what component framework to use. I had worked extensively with Material-UI but I needed something different that would offer me wider range of well customized components (I became pretty slow at styling). I brought in Evergreen after several sampling and reads online but again, after several prototype development against Evergreen—since I was using TypeScript and I had to import custom Type, it felt exhaustive. After I validated Evergreen with the designs of the idea I was developing, I also noticed I might have to do a lot of styling. I later stumbled on Material Kit, the one specifically made for React . It was promising with beautifully crafted components, most of which fits into the designs pages I had on ground.

        A major problem of Material Kit for me is it isn't written in TypeScript and there isn't any plans to support its TypeScript version. I rolled up my sleeve and started converting their components to TypeScript and if you'll ask me, I am still on it.

        In summary, I used the Create React App with TypeScript support and I am spending some time converting Material Kit to TypeScript before I start developing against it. All of these components are going to be hosted on Bit.

        If you feel I am crazy or I have gotten something wrong, I'll be willing to listen to your opinion. Also, if you want to have a share of whatever TypeScript version of Material Kit I end up coming up with, let me know.

        See more
        Vue.js
        Vue.js
        React
        React
        PHP
        PHP
        Laravel
        Laravel
        Node.js
        Node.js

        I want to create a video sharing service like Youtube, which users can use to upload and watch videos. I prefer to use Vue.js for front-end. What do you suggest for the back-end? Node.js or Laravel ( PHP ) I need a good performance with high speed, and the most important thing is the ability to handle user's requests if the site's traffic increases. I want to create an algorithm that users who watch others videos earn points (randomly but in clear context) If you have anything else to improve, please let me know. For eg: If you prefer React to Vue.js. Thanks in advance

        See more
        Interest over time
        Reviews of Moment.js and React
        Review ofReactReact

        Perfect workflow

        How developers use Moment.js and React
        Avatar of Instacart
        Instacart uses ReactReact

        Before two weeks ago or so, it used to be Backbone views and models, and everything was on our main store app, and our mobile web app, but actually, we just switched our mobile web app to using ReactJS for the interface. So it’s using Backbone models but ReactJS front-end components. Really, it was borne out of the frustration with how the Backbone model-view bindings worked, and it wasn’t especially performant for large views, and we had to do lots of tricks to make it performant. But swapping that out with React views meant that it could be both simpler and faster without having to spend a lot of time on that.

        One other interesting thing about that is, since React actually works okay with the Backbone models and the Backbone router and stuff like that, we didn’t have to rewrite the mobile web application and update it to ReactJS. Rewrites are almost always a bad idea. We were able to upgrade pieces of it at a time, move on to React, and now the entire thing is using React and just has the Backbone router and models and stuff like that that we already had, so it's a lot faster.

        Avatar of Netflix
        Netflix uses ReactReact

        At the beginning of last year, Netflix UI engineers embarked on several ambitious projects to dramatically transform the user experience on our desktop and mobile platforms. Given a UI redesign of a scale similar to that undergone by TVs and game consoles, it was essential for us to re-evaluate our existing UI technology stack and to determine whether to explore new solutions. Do we have the right building blocks to create best-in-class single-page web applications? And what specific problems are we looking to solve? Much of our existing front-end infrastructure consists of hand-rolled components optimized for the current website and iOS application. Our decision to adopt React was influenced by a number of factors, most notably: 1) startup speed, 2) runtime performance, and 3) modularity.

        React has exceeded our requirements and enabled us to build a tremendous foundation on which to innovate the Netflix experience.

        Avatar of Cloudcraft
        Cloudcraft uses ReactReact

        Web-frontend programming prior to React: like banging rocks together. With React: Like wearing fusion powered underwear. Gives you a nice warm feeling. Using React for Cloudcraft.co allowed us to create a beautiful UI in record time (1 month start to launch), with virtually no bugs popping up during development. The functional approach to just rendering your component given a state just makes so much sense, with React figuring out the delta between your current and desired representation. It's the future kids!

        Avatar of Kurzor, s.r.o.
        Kurzor, s.r.o. uses ReactReact

        React is choice number 1 when it comes to JS development at Kurzor. We choose React because it solves many issues with web applications in a elegant way. Writing an app in components is useful for coordination and isolation of concerns. React forces you to abandon state and use vertical passing through props instead. And having as many Pure Components as possible helps to write cleaner code.

        With React we usually use: Redux, React Router, React Toolbox, Styled Components.

        Avatar of Kent Steiner
        Kent Steiner uses ReactReact

        This is the best component framework and API available today for building modern web sites and apps. I really enjoy how minimal it is, and powerful at the same time. It removes opinionated development and replaces it with logic and data philosophies, which has in turn fostered a robust and lively code and support community.

        How much does Moment.js cost?
        How much does React cost?
        Pricing unavailable
        Pricing unavailable
        News about Moment.js
        More news