0.6.7 • Published 6 years ago

driver-browser v0.6.7

Weekly downloads
25
License
BSD-3-Clause
Repository
github
Last release
6 years ago

driver-browser

Browser driver for Rax.

Install

$ npm install --save driver-browser

Use

import {createElement, Component, render} from 'rax';
import BrowserDriver from 'driver-browser';
import {isWeb} from 'universal-env';

class Example extends Component {
  render() {
    return (
      <div>
        <img width="560" height="560" src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg" />
      </div>
    );
  }
}

render(<Example />, null, {
  driver: isWeb ? BrowserDriver : null
});

API

static setTagNamePrefix(prefix: String)

Set tag prefix for custom elements.

import BrowserDriver from 'driver-browser';

BrowserDriver.setTagNamePrefix('a-');
0.6.7

6 years ago

0.6.6

6 years ago

0.6.5

7 years ago

0.6.5-0

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.4

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

8 years ago

0.4.20

8 years ago

0.4.19

8 years ago

0.4.18

8 years ago

0.4.17

8 years ago

0.4.16

8 years ago

0.4.15

8 years ago

0.5.0-beta

8 years ago

0.4.14

8 years ago

0.4.13

8 years ago

0.4.12

8 years ago

0.4.11

8 years ago

0.4.10

8 years ago

0.4.9

8 years ago

0.4.8

8 years ago

0.4.7

8 years ago

0.4.6

8 years ago

0.4.5

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago