Inject model in react