Here you can find the complete list of decorators, however we encourage you to read Introduction section as first step.
- Components
@component@pureComponent@hoc(HOC: function, ...params)@displayName(name: string)@propTypes(propTypes: propTypes)@initialState(state: Object)@defaultProps(props: Object)@bindProps(props: Object)@computedProps(props: Object)@renameProps(config: Object)@mapProps(callback: function)@transferProps@clone(component: React.Component)@withStyles(styles: Object)@renderNothing@renderChildren@renderComponent(component: React.Component)@handleRenderError(handler: React.Component, string, function or nothing)
- Functions
- Context
- Events
- Lifecycle
@lifecycle(functions: Object)@componentWillMount(callback: componentWillMount)@componentDidMount(callback: componentDidMount)@componentWillUpdate(callback: componentWillUpdate)@componentDidUpdate(callback: componentDidUpdate)@componentWillReceiveProps(callback: componentWillReceiveProps)@shouldComponentUpdate(callback: shouldComponentUpdate)@componentWillUnmount(callback: componentWillUnmount)
- Others