Installation
Installing reactive/js
is very easy. You just need to install it as a dependency:
- npm
- yarn
npm install @lamvd0101/reactive-js
yarn add @lamvd0101/reactive-js
Requirements
- Typescript >= 4.4
cẩn thận
reactive/js
is written in Typescript and use Typescript Decorator. So you need to enable experimentalDecorators
, emitDecoratorMetadata
in your tsconfig.json
file.
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
React-Native
By default, React-Native doesn't enable Typescript Decorator. So, you need to install dependencies to enable it.