Update readme
This commit is contained in:
@@ -4,6 +4,7 @@ The project shows how to integrate React components into GWT application. GWT ba
|
||||
|
||||
## Adding React component
|
||||
|
||||
```Java
|
||||
EmbeddedReact.ReactComponentProps componentProps = new EmbeddedReact.ReactComponentProps();
|
||||
componentProps.onGoToGWTAppClicked = new MouseEventHandler() {
|
||||
@Override
|
||||
@@ -19,6 +20,7 @@ componentProps.onGoToGWTAppClicked = new MouseEventHandler() {
|
||||
};
|
||||
componentProps.currentLoggedUser = result.getUserName();
|
||||
ReactDOM.render(React.createElement(EmbeddedReact::loggedInComponent, componentProps), Document.get().getElementById("reactAppDiv"));
|
||||
```
|
||||
|
||||
## Build and run solution
|
||||
|
||||
|
||||
Reference in New Issue
Block a user