A simple music player built with ReasonReact and useContext
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
UPDATE: ReasonML + BuckleScript is now Rescript. As the ecosystem has changed around those tools, this repository is out of date.
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:
Before using reason-music-player
you need:
For editor support, check the Reason Docs. For Vim, you can check my blog post about ReasonML Development With Vim.
- 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 http://localhost:3000
via:
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