Fork me on GitHub
#uix2020-06-11
>
ouvasam11:06:40

Hi, i've just discover UIX and i find it really interesting. I wonder if the project will continue to be developed ? Many thanks

ouvasam12:06:58

I did a few tests and i really like the simplicity and the ease of use coming from reagent+re-frame. How does it compare in terms of stability and perfomance between adapton and re-frame?

Roman Liutikov13:06:47

Hey. xframe/adapton is more of an experiment atm

Roman Liutikov13:06:13

uix itself is being used in a number of projects listed in the readme

Roman Liutikov13:06:28

there might be small bugfixes and improvements to uix, but I'd like to focus on xframe and state management around uix in general, that's the plan for near future

ouvasam16:06:39

Many thanks for your reply I really like uix and start a new test project with it

firstclassfunc16:06:31

Really like this implementation have been using Rum but like simple integration with existing React components. I do have a question is how to represent such things as the attributes on Modal

import React from 'react'
import { Button, Header, Image, Modal } from 'semantic-ui-react'

const ModalModalExample = () => (
  <Modal trigger={<Button>Show Modal</Button>}>
    <Modal.Header>Select a Photo</Modal.Header>
    <Modal.Content image>
      <Image wrapped size='medium' src='/images/avatar/large/rachel.png' />
      <Modal.Description>
        <Header>Default Profile Image</Header>
        <p>
          We've found the following gravatar image associated with your e-mail
          address.
        </p>
        <p>Is it okay to use this photo?</p>
      </Modal.Description>
    </Modal.Content>
  </Modal>
)

Roman Liutikov16:06:06

I think this will do the job [:> Modal {:trigger (uix.core/as-element [:> Button "Show Modal"])}]

Roman Liutikov16:06:59

uix.core/as-element interprets Hiccup as React elements, needed here because Modal is a React component that expects React component as well

firstclassfunc16:06:15

hmm ok will try tks

firstclassfunc22:06:33

Thanks for the help this morning, I have completely refactored by Rum application using uix. One thing is how do you realize a JS component that requires the ability to mount to a dom node as in (vis/Network. (js/document.getElementById "graph") #js {} #js {})