Change architecture to React