Skip to content

Latest commit

 

History

History
executable file
·
63 lines (45 loc) · 1.32 KB

README.md

File metadata and controls

executable file
·
63 lines (45 loc) · 1.32 KB

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