driver-dom
    TypeScript icon, indicating that this package has built-in type declarations

    2.2.2 • Public • Published

    driver-dom

    DOM driver for Rax.

    Install

    $ npm install --save driver-dom

    Use

    import {createElement, render} from 'rax';
    import DriverDOM from 'driver-dom';
    
    function Example() {
      return (
        <div>
          <img width="560" height="560" src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg" />
        </div>
      );
    }
    
    render(<Example />, null, {
      driver: DriverDOM
    });

    API

    static setTagNamePrefix(prefix: String)

    Set tag prefix for custom elements.

    import DriverDOM from 'driver-dom';
    
    DriverDOM.setTagNamePrefix('a-');

    Keywords

    none

    Install

    npm i driver-dom

    DownloadsWeekly Downloads

    401

    Version

    2.2.2

    License

    BSD-3-Clause

    Unpacked Size

    299 kB

    Total Files

    27

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar