use react to change class instead of jquery attributes