Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to render smartclient widgets in React?

    Hi,

    I recently came across such a situation where I want to put some smartclient widgets in an application that uses React.js, which is because with knowledge of smartclient/smart-gwt for some time I really don't like the chaos around fighting so many low-level stuff. While still working in the "framework", I will just have a ListGrid or DynamicForm somewhere, which will make my life much easier. So I'm trying something like this,

    Code:
    React.createClass({
      ...
      render() function() {
        return <div>isc.Button.create({title: 'Hello'})</div>
      }
    })
    Obviously it doesn't work. Any ideas? Can I have any luck at all?

    Thanks.

    #2
    I'd like to close this thread. It actually works quite well, as shown in the above code. I just didn't see the button shown on the corner of the page :) Sorry for that.

    Comment

    Working...
    X