correct react usage