alibaba/lowcode-engine
View on GitHublowcode-engine/modules/code-generator 出码,现在的出码都是class组件,能否出函数组件,并支持ahooks?
Open
#1057 opened on Sep 19, 2022
3 comments (3 comments)0 reactions (0 reactions)0 assignees (0 assignees)TypeScript12,714 stars (12,714 stars)2,228 forks (2,228 forks)batch import
help wanted
Description
现在的出码都是class组件,能否出函数组件,并支持ahooks?
Contributor guide
- Tech stack
- typescriptreact
- Domain
- frontendtooling
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 3-5 days
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- clear
- Prerequisites
- React basicsTypeScriptLowcode engine codegen
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 45
- Research direction
- The issue requests modifying the code generator to output React functional components with hooks (ahooks) instead of class components. Start by examining the existing code generation templates in `modules/code generator/src/`, particularly how React class components are currently generated. Investigate how to switch to functional components and integrate hooks like those from ahooks. Review any related discussions in the issue comments for additional context.