--- tags : code style --- # 1. Code styling - part 1 ## File code style #### Top : *Type definition of "Proptypes"* ```javascript MyComponent.propType = { /* ... */ } ``` </br> #### Middle : *Component function* ```javascript export defuault function MyComponent({}) => { /* ... */ } ``` </br> #### Bottom : *Outside variables and functions* ```javascript const Variables = [ ]; function func() { }; ``` </br></br></br> ## Component function code style ## Conditional rendering code style
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up