ReactJS-AdminLTE
ReactJS-AdminLTE copied to clipboard
Should buttons be componentized?
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 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?
Agreed @swaroopsm , thanks for your input! :-)