load react component in metro

https://reactjs.org/
Post Reply
saeedmansoori
Posts: 3
Joined: Wed Apr 11, 2018 2:53 pm
Status: Offline

load react component in metro

Post by saeedmansoori » Tue Apr 24, 2018 8:46 am

hi...
i using metro ui & react js..
how load react component to window content??

Code: Select all


 Desktop.createWindow({
                    width: 300,
                    icon: "<span class='mif-user'> </span>",
                    title: 'user management',
                    content:( <div> <Users/></div>)
                });

this not working !!!

User avatar
olton
Site Admin
Posts: 133
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Thu Apr 26, 2018 10:31 am

You must first render the react component, and then add it when creating the window

Post Reply