react-syntax-plus READMEreact-syntax-plus: This is a syntax snippets plugin for React designed to simplify and accelerate the development process. English | 简体中文 FeaturesThere are two core functions of the plugin
When these methods are used, the corresponding method will be automatically introduced from the 'React' library (ignored if already introduced). Additionally, it should be noted that the way to activate the corresponding method is to enter the corresponding keyword in the text, followed by the corresponding character recognition area.
useRef and useStateThe characters after 'uf' and 'us' will be used as corresponding variable names. Note that variables after' us' will be placed in an array, and the second variable in the array will be automatically named with a camel hump. useMemoThe characters after 'um' will be used to match the base variables starting with this. After inserting the code, you need to input the variables and then press the 'tab' key to quickly jump to the custom logic after the 'return' statement. useCallbackThe characters after 'uc' will be used to match base or derived variables that start with this, and variables need to be input after inserting the code. useEffect and useLayoutEffectThe characters after 'ue' and 'ul' will be used to match base or derived variables starting with this, and then listen for their changes, propsUse keywords with props to wake up, for example: If a string is appended after Of course, if you have already deconstructed props, the deconstructed properties will be automatically recognized, such as: Custom hooksCustom hooks starting with 'use'. Release Noteshttps://github.com/mmdctjj/react-syntax-plus/releases Enjoy! |