r/reactjs • u/acemarke • Mar 02 '18
Beginner's Thread / Easy Questions (March 2018)
Last month's thread was pretty busy - almost 200 comments . If you didn't get a response there, please ask again here!
Soo... Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple.
The Reactiflux chat channels on Discord are another great place to ask for help as well.
27
Upvotes
View all comments
Show parent comment
3
u/NiceOneAsshole Mar 13 '18
Both are valid approaches.
I would advise that differing components is a little overkill unless you plan to have some different behavior between the two (i.e. different confirmation animation).
If you just want to change the style, a .button-green or .button-blue class tacked on when you know which you'd want to render is real easy.