Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.