React + Angular

Best of both worlds!

About the speaker

Angular bootstrapping - Intro

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.



Angular bootstrapping - Deep dive

What is AngularBrowser module?

  • Default module
  • For web apps
  • Interfaced with browser

Microsoft’s new AngularReactBrowserModule

Replacement for default AngularBrowser module

React aware

Capable of loading React components

Shadow DOM aware

Bootstrapping React inside Angular

Managing react component lifecycle inside Angular component lifecycle

Goodbye JSX

  • What is JSX
  • React TypeScript
  • react.createElement

Hello React TypeScript

class Toggle extends React.Component {
  constructor(props) {
    this.state = { isToggleOn: true };

    // This binding is necessary to make `this` work in the callback
    this.handleClick = this.handleClick.bind(this);

  handleClick() {
    this.setState(state => ({
      isToggleOn: !state.isToggleOn



  render() {
    return React.createElement(
      { onClick: this.handleClick },
      this.state.isToggleOn ? 'ON' : 'OFF'

ReactDOM.render(React.createElement(Toggle, null), document.getElementById('root'));


  • Ang wrapper
  • react component inside Ang component
  • Working app demo

Best practices


  • Incrementally rewrite an Angular application into React (moving from atomic/leaf nodes upward into full features/pages until the entire app is re-written)


  • any React code can make use of the custom Angular-React renderer
  • supports loading MS Fabric UI

React + Angular

By Niranjan Janardhana

React + Angular

  • 488