Giter Site home page Giter Site logo

yamjs-doc's Introduction

YamJs 是什么?

YamJS yamjs version 受vue和react启示,结合现在的趋势,成为一个向html看齐的组件编写基类,让你的组件不受框架的约束,达到即写即用,完美结合vue,react等框架,编写出来的组件贴近html原生用法;

yamjs是使用jsx语法去编写组间的,所以在写法上和react类似;后期会根据需要去完善jsx语法的编写方式。

借助webComponents渲染机制来渲染组件标签,兼容非webComponents模式渲染;

它的特点在于:

兼容 干净 小巧 自驱动
不惧你的使用什么技术栈,都可以使用,区别在方法传递上 该基类只有标签渲染的主程序,保留了插件扩展功能,其他的例如state,router,ajax,animate...都是单独的插件根据需要添加; gzip后只有12kb左右;若是去除一些提示信息,也就只有gzip后也就11kb左右; 使用时只需填写标签即可,无需手动挂在;
  • 兼容:不惧你的使用什么技术栈,都可以使用,区别在方法传递上

  • 干净:改基类只有标签渲染的主程序,保留了插件扩展功能,其他的例如state,router,ajax,animate...都是单独的插件根据需要添加;

  • 小巧:gzip后只有12kb左右;若是去除一些提示信息,也就只有gzip后也就11kb左右;若是需要兼容ie9+(gzip后17.59kb)

  • 自驱动:使用时只需填写标签即可,无需手动挂在;

目前编写只能用构建工具去构建(yamjs-cli)npm i yamjs-cli -g

yamjs-doc's People

Contributors

xuelianggit avatar gugua-cn avatar

Watchers

James Cloos avatar  avatar

Forkers

gugua-cn

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.