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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -