Questions tagged [clojurescript]

ClojureScript is a language derived from Clojure that transpiles into JavaScript code.

Utilizing an ajax request in ClojureScript

I am a beginner in clojurescript and I want to further my understanding by converting a pre-existing application entirely into clojurescript. However, I am struggling with implementing an ajax call. Does anyone know of any online examples or could provid ...

Tips for setting up and using shadow-cljs within an established project directory on macOS:

As I embark on the journey of installing shadow-cljs on MacOS Monterey 12.5, I find myself in unfamiliar territory within the Apple ecosystem, npm, and the Clojure/ClojureScript stack. It's a whole new world for me. In the project folder below, you&a ...

What is the best way to engage with a JavaScript/ClojureScript wrapper library for an API?

While I usually work with Python, I have recently been delving into learning Clojure/ClojureScript. To test my skills, I've set out to create a ClojureScript wrapper for Reddit's API. My main challenge lies in the asynchronous nature of Javascript. Since ...

Develop a Custom Design using Material-ui and ClojureScript

I have included the material-ui library and used the function createMuiTheme in my code: (:require ["@material-ui/core" :as ui] ["@material-ui/core/styles" :refer [createMuiTheme]]) Then I define the following : (def theme (createMuiTh ...

Exploring list iteration with ClojureScript, Reagent, and Reagent Material UI: Attempting to iterate through a list

Recently, I started exploring clojurescript and reagent for building a personal website. Using shadow-clj for hot reloading has been quite helpful. To begin, I imported the necessary material-ui components: (:require [reagent-material-ui.icons.home :refer ...

Is it possible to pass props through Clojurescript reagent/as-element?

Exploring the capabilities of material-ui framework wrapped for clojurescript using reagent-material-ui, I am developing a small desktop application. One thing that piqued my curiosity is how to pass props and style when utilizing the reagent/as-element ...

How can one assess a list in clojurescript?

If I have the following list defined: (def defining-list `(def one 1)) How can I execute defining-list so that one is set to 1? (in clojurescript) EDIT: To give a broader context of my goal and prevent getting stuck in an X/y problem. I am attemptin ...

Exploring the impact of mutation in Clojurescript applications

I'm delving into the inner workings of Clojurescript by experimenting with generating grid structures from JSON data using d3.js. I've integrated strokes to utilize d3 functionalities. The structure of the JSON data is as follows: [[{"players": ...