Questions on the Javascript framework behind Vanilla

R_JR_J Ex-FanboyMunich Moderator

I was searching if there was another attempt for POST requests from JavaScript then the jQuery approach. I like to avoid jQuery if possible. In the file "quote.tsx" I found the following snippet:

           void api
               .post("/rich/quote", {
                   format: this.quoteData.format,
               .then(response => {
                   this.setState({ renderedBody: }, this.props.onRenderComplete);

When searching, I found a few references to but also to apiv2.... What I was not able to find was where that is defined. I would like to know how to use that instead of the $.POST from jQuery or if it is thought or suited as a replacement.

Has anyone any idea on that?



  • charrondevcharrondev Developer Lead (PHP, JS) Montreal Vanilla Staff

    Our new JS stuff has been badly needing a quickstart guide from some time now. I should have some time to write documentation this sprint.

    Right now most of the docs we have our internal so I'll see what I can shuffle around.

  • R_JR_J Ex-Fanboy Munich Moderator

    Sounds promising! More or less I know how to read the PHP part of Vanilla, but I'm totally lost when it comes to JS. It would be great to have some details documented anywhere.

Sign In or Register to comment.