This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this to <head> | |
<script src="https://dev.app.swipelux.com/ static/js/bundle.js"> | |
// Call the widget | |
<swipelux-widget api-key="test"/> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
export const Component = (): JSX.Element => { | |
const [selected, setSelected] = useState<string[] | undefined>(['ca', 'us', 'sw']); | |
const onChange = (values: string[]): void => { | |
setSelected(values); | |
}; | |
const handleRemove = (value: React.ReactText): void => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import * as serviceWorker from './serviceWorker'; | |
import createWorker from 'offscreen-canvas/create-worker'; | |
import App from './App'; | |
import { Store } from './Store'; | |
ReactDOM.render( | |
<Store.Provider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import * as serviceWorker from './serviceWorker'; | |
import createWorker from 'offscreen-canvas/create-worker'; | |
import App from './App'; | |
import { Store } from './Store'; | |
ReactDOM.render( | |
<Store.Provider> |