How to conditionally export values in a (CRA) React App

前端 未结 0 1893
长情又很酷
长情又很酷 2021-01-06 09:28

In my React (v17) app I would like to render API handlers differently depending on whether there is an process.env.REACT_APP_API_BASE defined.

So somethi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题