GitXplorerGitXplorer
s

virtual-dom

public
1 stars
1 forks
4 issues

Commits

List of commits on branch master.
Verified
6c1e8e951ac89e3a61f7b304f72f7fe74c984ed1

Merge pull request #36 from selmalee/dependabot/npm_and_yarn/express-4.18.2

sselmalee committed 2 years ago
Verified
57c99937681fb3ef79d675c8fdd6d24d6771bb40

Bump express from 4.17.1 to 4.18.2

ddependabot[bot] committed 2 years ago
Verified
e204f15fc61b885dcc278165708adc216e6d0f19

Merge pull request #35 from selmalee/dependabot/npm_and_yarn/qs-6.5.3

sselmalee committed 2 years ago
Verified
d4e9c26811cca74e4ad74353be71792c16a3facb

Bump qs from 6.5.2 to 6.5.3

ddependabot[bot] committed 2 years ago
Verified
4767fd72578780e0bda6aae90ad0a6095d5931e8

Merge pull request #1 from seminelee/dependabot/npm_and_yarn/eslint-utils-1.4.3

sselmalee committed 3 years ago
Verified
589b62623014eef54df62fbdc63395305800f794

Merge pull request #3 from seminelee/dependabot/npm_and_yarn/acorn-5.7.4

sselmalee committed 3 years ago

README

The README file for this repository.

virtual-dom

虚拟dom实现

  1. 用JS对象模拟DOM(虚拟DOM)
  2. 把此虚拟DOM转成真实DOM并插入页面中(render)
  3. 如果有事件发生修改了虚拟DOM,比较两棵虚拟DOM树的差异,得到差异对象(补丁数组)(diff)
  4. 把差异对象(补丁数组)应用到真正的DOM树上(patch)

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify