プロジェクト
概要
npm package for TWA SDK
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルSDK
npm package for Telegram Web Apps (TWA) SDK.
npm i @twa-dev/sdk
Motivation
Telegram distributes SDK via link. It's kinda old fashion way to work with a library:
<html lang="en">
<head>
<title>TWA</title>
<meta charset="UTF-8">
<script src="https://telegram.org/js/telegram-web-app.js?56"></script>
<script>
window.Telegram.WebApp.showAlert('Hey there!');
</script>
</head>
<body></body>
</html>
This package allows to work with SDK as with a npm package:
import WebApp from '@twa-dev/sdk'
WebApp.showAlert('Hey there!');
And yes, it supports TS.
Demo
React
If you use React in your project, check out components that we have prepared for you.
These components significantly simplify developer experience.
関連プロジェクトを探す
読み込み中…