Monaca Onsen UI Discord Chat Github Repo

Problem rendering Toolbar on Navigator

  • Hello! I’m new to React and to Onsen UI, I trying to use this code render a Toolbar on Page inside a Navigator element, but I only can see rendered the Button and the Hello World div. can anyone tell me what I’m doing wrong?.

    import React from ‘react’;
    import ReactDOM from ‘react-dom’;
    var ons = require(‘onsenui’);
    var Ons = require(‘react-onsenui’);

    export default class App extends React.Component {

    renderToolbar() {
    return (
    <div className=‘center’>Onsen UI</div>

    return (
    <Ons.Page renderToolbar={this.renderToolbar}>
    Hello World!
    Push Page

    render() {
    return (
    title: ‘First page’