FRP using Bacon.js
Bacon.js is a JavaScript library that helps us write functional reactive code in JavaScript. It can be used for both frontend and backend JavaScript. The official website of Bacon.js library is https://baconjs.github.io/.
Let's create a basic website project to demonstrate FRP with Bacon.js.
Setting up the project
Let's learn how to download and install Bacon.js for use with frontend and backend JavaScript. On the frontend, Bacon.js depends on jQuery.
Create a directory named baconjs-example. Inside it, create files called package.json and app.js and a directory called public. Inside the public directory, create directories called html and js. Inside the html directory, create a file called index.html. Finally, inside the js directory, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access