B
B
BogdanZots2021-10-06 10:27:35
React
BogdanZots, 2021-10-06 10:27:35

How to do naming in redux-thunk, action creator and api?

Hello everyone, I have a task - login user. I have a thunk function , an api function that sends data to the server , and an action creator . The question is how to correctly name each function so that it would be logical and correspond to the layers, api function api layer, bll thunk function bll layer. So far I have given this naming:
api function that sends data to the server - userPostLogin
bll thunk function - loginUser
action creator - loginUserAC The
question is, what can I improve my naming?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question