Decoupling React by environment variables
Environment variables is of the best ways to differentiate/decouple between react and it’s server side dependency. In order to do so let’s take webpack as …
Environment variables is of the best ways to differentiate/decouple between react and it’s server side dependency. In order to do so let’s take webpack as …
1. Hidden form fields Example Basic HTML: <form action=”ServerActionName” method=”post”><input type=”hidden” value=”hidden value let’s say yellow” name=”color” /> </form> The pro is that it is …
Creating a reducer example: let’s say we have a file- account.reducer.ts export function reducer(state, action) { switch (action.type) { case ‘UPDATE_ACCOUNT_STATUS’: return { …state, accountStatus: …
State data can be view data, user information, entity data, user selection or input and any other data that the application tracks .. what to …