This module is the Catavolt React Development Kit
- npm install --save catreact
-
If using Typescript (recommended), WebStorm is recommended as an ide, as it has very good Typescript support
-
Install Node.js (5+ recommended) directly or use nvm to easily manage installations
-
From this project's root directory (catreact), run 'npm install'. This should install all required packages to the 'node_modules' directory in 'catreact', including the catavolt javascript sdk.
- Open the catreact project root folder in WebStorm
- Go to WebStorm -> Preferences -> Languages and Frameworks -> Javascript
- Set the Language Level to JSX Harmony
- Go to WebStorm -> Preferences -> Languages and Frameworks -> TypeScript panel
- Choose 'Enable TypeScript Compiler'
- Make sure the path to the Node interpreter is correct
- Choose 'Use tsconfig.json' radio option
- Click 'Apply' and 'Ok'
- Open the TypeScript Compiler panel at the bottom of WebStorm and Choose 'Compile All' from the buttons on the left
An example of the use of the catreact package is the catreact-html package. These higher-level components make use of the components in this package to build web-based components.