We recommend using the reactant-cli to quickly create a brand new Reactant project. See more information about reactant-cli.
Customize the creation of an Reactant project
If you've already created your project using reactant-cli, please skip this section.
If you need to customize to create Reactant project, then you can do the following steps:
First, build a React project and you can visit here for more information.
then install Reactant dependencies:
yarn add reactant reactant-web
And set up the following related configuration.
@babel/plugin-propose-class-propertiesinstalled and configured for Babel.
If using TypeScript, make sure to enable
If using TypeScript with Babel, you can install
babel-plugin-transform-typescript-metadatafor supporting TypeScript metadata with dependency injection, and set the babel configuration about it.