@divkitframework/react
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

DivKit for the Web (React way)

React component wrapper to render DivJson, using the @divkitframework/divkit module.

Main doc.

Installation

npm i @divkitframework/react --save

Usage

import { DivKit } from '@divkitframework/react';

return <DivKit id="smth" json={json} />;

All other props are similar to the render options for the @divkitframework/divkit module.

SSR

SSR is supported. Make sure to pass the same props both on the client and the server.

Documentation. Medium tutorial. Habr tutorial.

Telegram: News | English-speaking chat | Чат на русском.

Twitter

Package Sidebar

Install

npm i @divkitframework/react

Weekly Downloads

211

Version

2.0.0

License

Apache-2.0

Unpacked Size

39.1 kB

Total Files

12

Last publish

Collaborators

  • robot-divkit