javascript - React/Redux - Best way to handle different entry points for a single result page? -


i trying deal following situation : => homepage simple form => page results form additional search criterias

what did : => 2 differents form components actions & reducers => page result gets information both forms/components

the problem have :

=> have lot of code same. actions , reducers same things both forms (api call etc.) => page results needs fed 2 different sources make code inelegant point of view

i quite beginner , think there must elegant way of handling such case seems quite common. maybe solution obvious indulgent... learning :)

thanks lot help,


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -