mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00: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.