I would like to use this React.js component as an external Reagent component in a ClojureScript application:
https://github.com/felixrieseberg/React-Spreadsheet-Component .
This component, however, is not available in the repository:
http://cljsjs.imtqy.com/ .
If the React.js component is available in the directory, then using it with Reagent will be as simple as in the following example.
(ns demo.views (:require [reagent.core :as reagent] [cljsjs.reactable]]) (defn example [] [:div [:> Reactable.Table {:data (clj->js [ {:name "Foo" :section 51} {:name "Bar" :section 51} ])} ] ] )
I would like to know what I need to do with the React Spreadsheet component so that I can use it in the same simple way. How to prepare the React.js component for use in ClojureScript as an external Reagent component? Indicate the type of recipe description.
Note. This question How to use the ReactJS component with Clojurescipt / Reagent looks similar, but does not answer my question.
source share