Open shybyte opened 7 years ago
I have the same question, for a different library (ant.design). Have you made any progress on this in the meantime @shybyte ?
@i-am-the-slime I haven't found a solution for this problem. Actually I haven't tried much longer. Once a year I start to learn PureScript but every time again in practice I stumble over the pureness part of it and I give up. But still, if you find a solution, please post it here, so I have a better start next year :-)
For these kind of things you'll want to directly use purescript-react
purescript-pux is not really compatible with the component model of React. It is a direct port of the Elm architecture, which has a monolithic state atom (Redux is that for the React ecosystem).
Some libraries like material-ui require to add components as properties to another react component.
JSX Example (See live/complete):
I wonder if this is possible in purescript-pux. The following approach does not work. Is there a way which works?
You can find a complete example here: https://github.com/shybyte/pux-starter-app-material-ui/blob/master/src/Main.purs