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
Post a Comment