Reason Music Player
Table of Contents
- About the Project
- Getting Started
About The Project
A ReasonReact music player with the React Context API
This is a port of James King's blog post How to Use the useContext Hook in React to ReasonReact.
With this repository you can see my progress in converting a React.js example to ReasonML and ReasonReact.
It also serves as a code example for a tutorial series. If you want to follow along, you can read the blog posts on dev.to:
- How To Create a Music Player in Reason With The useContext Hook Part 1
- How To Create a Music Player in Reason With The useContext Hook Part 2
- How To Create a Music Player in Reason With The useContext Hook Part 3
- How To Create a Music Player in Reason With The useContext Hook Part 4
To get a local copy up and running follow these steps:
reason-music-player you need:
Install Bucklescript and Reason:
npm install -g bs-platform --unsafe-perm
(I use pnpm for installing local packages, that's why you'll find a
pnpm-lock.yml file in this repository.)
- Clone the repo
git clone https://github.com/sophiabrandt/reason-music-player.git
(Alternatively, use degit:
npx degit sophiabrandt/reason-music-player reason-music-player).
- Install NPM packages
cd reason-music-player && npm install
Run the project locally under
npm run start
Create a production build:
npm run build
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
Distributed under the MIT License. See
LICENSE for more information.
Sophia Brandt - @hisophiabrandt
Project Link: https://github.com/sophiabrandt/reason-music-player