Git Product home page Git Product logo

react-wxapp's Introduction

React语法构建小程序

本项目纯属学习之用,目的是为了让大家了解原理,因此功能实现不齐全,切不可以投入到实际业务进行使用!

本项目简单实现了React语法构建小程序的过程,即将src目录的React计数器运行至小程序平台,分别通过两种方式实现:一种是编译时方式实现(代码目录:packages/compile-core),另一种是运行时方式实现(代码目录:packages/runtime-core)。想要了解更多实现细节可阅读此文章:https://juejin.cn/post/7042700848559816717

如何使用

安装依赖

npm install

重编译构建(构建成功后用微信开发者工具导入 /dist/compile 目录)

npm run build:compile

重运行构建(构建成功后用微信开发者工具导入 /dist/runtime 目录)

npm run build:runtime

react-wxapp's People

Contributors

canfoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.