search

Home  >  Q&A  >  body text

javascript - Which source code is more suitable for reading and learning, Vue or React? Not talking about the pros and cons of the framework, just from a learning perspective, I hope to know why.

I started learning and using Vue2 at the beginning of this year. Currently, I use Vue2 Family Bucket to develop c-side and b-side at work. In my spare time, I use React for small projects written by myself and my friends.

I plan to start reading the source code in the near future to deepen my understanding. At present, my personal level in Vue and React is that I can build the required structure by myself, write projects, use other people's components, and solve bugs by myself or report them. Issues, waiting for the master to solve them.

Then the question is, from the perspective of learning, which source code should I read? If there are other projects suitable for reading source code, you can recommend them to me (excluding: underscore, lodash), thank you.

Expected reading time:

Hope to be able to get it by reading the source code

迷茫迷茫2870 days ago636

reply all(4)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 13:41:47

    I only know about Vue, and I haven’t read much about the source code. I just practiced two-way data binding based on ES5’s setter/getter and publish/subscribe design patterns. I looked at that small part of the code and felt that reading the source code requires A certain amount of internal skills, good basic skills + design patterns + understanding of algorithms + understanding of ideas. Anyway, more aspects must be involved, otherwise it will be very difficult. Without a good foundation, learning will not make much sense.

    Here is a blog recommended for studying vue source code: https://github.com/youngwind/...

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 13:41:47

    The source code of React is not suitable for people without functional programming experience.

    But in fact, if you don’t have source code reading skills, this relatively large framework is not suitable for the first time. It's easy to fall into it.

    Since you mainly use Vue, it is more appropriate to look at Vue, and comparison will be more useful.

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 13:41:47

    Vue is more sophisticated than React. To put it bluntly, it has less source code and is easier to read.

    It is recommended to be proficient in using it first, understand the principles, and read the source code with questions.

    reply
    0
  • 某草草

    某草草2017-05-16 13:41:47

    Of course it’s Vue, which one is easier to learn and which one is easier to get started with. So whichever is easier to read.

    reply
    0
  • Cancelreply