PHP Typescript React Project


I wonder what npm packages i have to install and what configs i have to do if i want to create a React project that go together with Typescript and PHP. And is it possible to set up that i can pass a PHP variable to a react Component?