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.
迷茫
迷茫 2017-05-16 13:39:47
0
4
480

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:

  • 4 months to 6 months (due to work, I still work overtime, but I still work overtime on Saturdays.), take out about 2 hours a day.

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

  • The concept of excellent frame design

  • Excellent and reasonable project structure

  • Elegant grammar (writing)

  • Salary increase (manual funny, become regular after 2 months...currently 120 a day)

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (4)
世界只因有你

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/...

    仅有的幸福

    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.

      滿天的星座

      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.

        某草草

        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.

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!