Conduct props audit #712
abhishekashyap
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This discussion is to conduct a prop audit as and determine proper prop conventions or renames for the next major release.
Agenda/Open Questions
error
vsisError
vshasError
)Differentiating between nouns and adjectives named props
For numeric values, if the values begin with 0, we should probably suffix prop with
index
For event handlers (onClick, onChange, etc), we should probably get rid of reccuring component name in the prop. For e.g. we have
onInputChange
for the Input component, ideally it should haveonChange
function as the developer already knows it is an Input componentFor string-based props we can suffix the prop name with
text
Beta Was this translation helpful? Give feedback.
All reactions