0x-instant-component

A react component to use the 0x Instant Exchange logic

Usage no npm install needed!

<script type="module">
  import xInstantComponent from 'https://cdn.skypack.dev/0x-instant-component';
</script>

README

0x-instant-component

A plug and play 0x Instant component.

TODO

  • Add props for supported tokens
  • Add props for fees
  • Maybe find a better way to inject script

Usage

npm install 0x-instant-component

Example bare bones App.js:

import React, { Component } from 'react';
import Instant from '0x-instant-component';

class App extends Component {
  render() {
    return (
      <div>
        <Instant />
      </div>
    );
  }
}

export default App;