ReactJS-AdminLTE icon indicating copy to clipboard operation
ReactJS-AdminLTE copied to clipboard

Should buttons be componentized?

Open booleanhunter opened this issue 9 years ago • 2 comments

This page shows available buttons.

Using them is as simple as writing <button type="button" class="btn btn-block btn-default btn-lg">Default</button>. Don't really know if it's necessary to make it a React component.

booleanhunter avatar Dec 20 '15 14:12 booleanhunter

@booleanhunter I feel its necessary. Writing like the above, you need to remember all the classNames. Probably adding a component like:

<DefaultButton />
<PrimaryButton />

This will be much neater and easier. What do you think?

swaroopsm avatar Feb 23 '16 06:02 swaroopsm

Agreed @swaroopsm , thanks for your input! :-)

booleanhunter avatar Feb 23 '16 09:02 booleanhunter