I was wondering when I write redux action, reducers and store using typescript in React Native, should I give it an extension of .tsx
or it can be .js
only?
For instance this is my store.tsx
file look like this:
import {createStore, applyMiddleware, combineReducers} from 'redux';import {composeWithDevTools} from 'redux-devtools-extension';import thunk from 'redux-thunk';import newsReducer from './reducers/newsReducer';const rootReducer = combineReducers({ news: newsReducer,});const middleware = composeWithDevTools(applyMiddleware(thunk));export default createStore(rootReducer, middleware);
Should my files become all tsx
extension in this case?