A declarative Web Share API

<button type="share">
var testButton = document.createElement("button");
testButton.setAttribute("type","share");
if (testButton.type != "share") {
// polyfill
}

--

--

--

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Converting Storybook components to Sketch File

React.memo VS useMemo

Using Angular CDK Portal to create a Modal

Path to become a God — JavaScript

Type Checking using PropTypes in React

React Lifecycle Methods

Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(…)`, expected a…

The birth— Initial Project Setup

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeremy Keith

Jeremy Keith

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

More from Medium

How we set up our e-commerce microsite environment

Optimising Core Web Vitals at Carousell