Server-side rendering

Akili is not isomorphic but we implemented the server-side rendering possibility. Use nodejs library akili-connect. It is based on jsdom. You are limited only by the capabilities of this library.

On the client side, you don't need to do anything special. There is only one feature you would better know:

class MyComponent extends Akili.Component {
  compiled() {
    return new Promise((res) => {
      setTimeout(res, 1000);
    });
  }

  resolved() {
    return new Promise((res) => {
      setTimeout(res, 1000);
    });
  }
}

The library will wait for the promises resolving in those functions before to render and return html. You can do async operations in the allowed places and be sure that everything is going to be all right.

As for the server side, please read the documentation of our library to make a few simple steps.