Files
divkit/client/web/divkit-examples/ts
2022-11-23 12:06:10 +03:00
..
2022-08-26 03:52:29 +03:00
2022-08-26 03:52:29 +03:00
2022-08-26 03:52:29 +03:00
2022-11-23 12:06:10 +03:00
2022-11-23 12:06:10 +03:00
2022-08-26 03:52:29 +03:00
2022-08-26 03:52:29 +03:00
2022-08-26 03:52:29 +03:00

Render DivJson with Webpack

Install the packages first:

npm ci

Please, note that @divkit/divkit/dist/client.css imported as module. The css file can be included in any way.

Then you can render DivJson as follows:

import {render} from '@divkitframework/divkit/client';

render({
    id: 'test',
    target: element,
    json: {}
});

Types would be loaded automatically.