public JReact addRequirePath(final String path) {
    try {
      this.js.eval("require.paths.push('" + path + "');");
    } catch (final ScriptException e) {
      throw new RuntimeException("Failed to setup JavaScriptEngine", e);
    }
    return this;
  }
public JReact addRequirePath ( final String path ) { try { this . js . eval ( "require.paths.push('" + path + "');" ) ; } catch ( final ScriptException e ) { throw new RuntimeException ( "Failed to setup JavaScriptEngine" , e ) ; } return this ; }
@param path
The filesystem path to add to the require lookup paths (e.g. the
react npm module).
@return Returns this for method chaining