This PR tries to refactor the code for BrPage in @bloomreach/react-sdk with the following aims:
BrPage becomes a function component in line with the recommendation from React
The code becomes a bit simpler and easier to maintain, for instance avoiding calling destroy and re-sync if only the configuration in props has changed, but page in props hasn't changed
May be a starting point for further refactoring of BrPage so that it better fits the development in React...
This is my first commit to this repo, and comments are very welcome! ☺️
Hi,
This PR tries to refactor the code for BrPage in @bloomreach/react-sdk with the following aims:
destroy
and re-sync
if only the configuration in props has changed, but page in props hasn't changedThis is my first commit to this repo, and comments are very welcome! ☺️