Read in file with client-side clojurescript/re-frame app
问题 I'm writing a client-side application which should read in a file, transform its content and then export the result. To do this, I decided on Re-Frame. Now, I'm just starting to wrap my head around Re-Frame and cloujurescipt itself and got the following thing to work: Somewhere in my view functions, I send this whenever a new file gets selected via a simple HTML input. [:input {:class "file-input" :type "file" :on-change #(re-frame/dispatch [::events/file-name-change (-> % .-target .-value)])