npm

Need private packages and team management tools?Check out npm Orgs. »

react-soundcloud-player

1.1.1 • Public • Published

react-soundcloud-player

npm version

react-soundcloud-player is a simple SoundCloud player.

For a soundcloud player using the Widget API check out react-soundcloud-widget-player

Installation

yarn add react-soundcloud-player

Usage

import Player from 'react-soundcloud-player'
import ReactDOM from 'react-dom'
import React, { Component } from 'react'
 
class TestComponent extends Component {
  render() {
    return (
      <div>
        <Player
          client_id="c5a171200f3a0a73a523bba14a1e0a29"
          audio_id="193179003"
          title="Easyfun - Fanta"
        />
      </div>
    )
  }
}
 
ReactDOM.render(<TestComponent />, document.getElementById('root'))

Styles

Uses styled-components 💅 for the base styling.

Development

yarn
yarn dev

Test

yarn test

Build

yarn
yarn build

Publish

npm login
npm version patch
git add -A
git push origin master
npm publish

License

MIT

install

npm i react-soundcloud-player

Downloadsweekly downloads

17

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability