reactjs - What would be the type of `React.createClass` in Haskell? -


i reading this , wonder type of react.createclass / reactclass , reactcomponent in haskell ?

i trying understand concepts in react, hence question.

my guess this:

type reactclass<tprops> = (tprops) => reactcomponent<tprops>;

would translate haskell like:

data reactclass tprops = data reactclass ( tprops -> reactcomponent tprops )

and

type reactcomponent<tprops> = {   props : tprops,   render : () => reactelement }; 

this translate haskell as:

data reactcomponent tprops = reactcomponent tprops reactelement

but unsure.

could please correct me if wrong ?


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -