Git Product home page Git Product logo

widgets-demo's Introduction

Swap Widget demo

The Uniswap Labs Swap Widget bundles the whole Uniswap experience into a single React component that you can easily embed in your web app with one line of code.

This repo is a simple example of how to import the @uniswap/widgets npm package and embed the Swap Widget in a web app using either Next.js or the create-react-app framework.

Uniswap Widgets

Getting started

This example project is available in both the Next.js framework and the create-react-app framework. The implementations differ slightly, so this repo includes a branch for each.

Getting started with Next.js

  1. Switch to the Next.js branch by running git switch nextjs

  2. If this is your first time using this branch, run yarn install

  3. Run the app with yarn dev

Getting started with create-react-app

  1. Switch to the create-react-app branch by running git switch cra

  2. If this is your first time using this branch, run yarn install

  3. Run the app with yarn start

Additional documentation

  • Swap Widget Docs: Learn how to integrate, customize, and style the Swap Widget.

  • Discord: Ask questions in the #widgets channel for support.

  • GitHub: Read the Swap Widget's source code.

  • What is Uniswap: Learn about the Uniswap Protocol and available SDKs.

widgets-demo's People

Contributors

willhennessy avatar zzmp 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.