Files
divkit/client/web/divkit-examples/ts
4eb0da e59477edcc Fix audit errors
commit_hash:16c452a817109921410ca6ed977f3ba78a8b2dfb
2026-01-16 12:50:02 +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
2026-01-16 12:50:02 +03:00
2026-01-16 12:50:02 +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.