Riley Lambert

Riley Lambert

1649731368

Professional Micro-Frontend Shared State Setup

Professional Micro-Frontend Shared State Setup

0:00 Introduction
1:22 Sample Application Setup
3:28 Mono Repo Setup
6:49 App-Shell Setup
16:39 Fixing the UI Library
18:21 Card-Picker MFE Setup
26:41 Fixing Eager Consumption
35:12 Building The Top Number App
39:33 Building The Top Number MFE
41:57 Consuming Top Number
43:37 Why is Runtime Sharing Important?
45:16 Trying Out Build-Time Sharing
49:51 Choosing The Right Architecture

#react #microfrontend 

What is GEEK

Buddha Community

Professional Micro-Frontend Shared State Setup

Hire Frontend Developers

Create a new web app or revamp your existing website?

Every existing website or a web application that we see with an interactive and user-friendly interface are from Front-End developers who ensure that all visual effects come into existence. Hence, to build a visually appealing web app front-end development is required.

At HourlyDeveloper.io, you can Hire FrontEnd Developers as we have been actively working on new frontend development as well as frontend re-engineering projects from older technologies to newer.

Consult with experts: https://bit.ly/2YLhmFZ

#hire frontend developers #frontend developers #frontend development company #frontend development services #frontend development #frontend

I am Developer

1597487472

Country State City Dropdown list in PHP MySQL PHP

Here, i will show you how to populate country state city in dropdown list in php mysql using ajax.

Country State City Dropdown List in PHP using Ajax

You can use the below given steps to retrieve and display country, state and city in dropdown list in PHP MySQL database using jQuery ajax onchange:

  • Step 1: Create Country State City Table
  • Step 2: Insert Data Into Country State City Table
  • Step 3: Create DB Connection PHP File
  • Step 4: Create Html Form For Display Country, State and City Dropdown
  • Step 5: Get States by Selected Country from MySQL Database in Dropdown List using PHP script
  • Step 6: Get Cities by Selected State from MySQL Database in DropDown List using PHP script

https://www.tutsmake.com/country-state-city-database-in-mysql-php-ajax/

#country state city drop down list in php mysql #country state city database in mysql php #country state city drop down list using ajax in php #country state city drop down list using ajax in php demo #country state city drop down list using ajax php example #country state city drop down list in php mysql ajax

Abigail  Cassin

Abigail Cassin

1596028440

Micro Frontends — Not A Solution Fitting All

First lets talk about what are micro frontends and how they are useful in various scenarios.

Micro Frontend is basically applying to concept of Micro Services architecture of backend to frontend applications. What that means is to divide an web application into separate isolated units such that different Independent Teams can work upon these units with their own set of rules and frameworks and later on these isolated units can come under a single shell to look as one application and can work as a single application for user. For example an e-commerce application can have cart, products, ordering, invoicing as some of micro frontends.

If you read the explanation given above carefully, you can list down following benefits of micro frontend architecture which are same as micro services architecture.

  1. Isolated Units & Independent Teams.
  2. Freedom of choice of different technology for every isolated unit.
  3. Separate deployment for each unit, so no need of redeployment of all units.
  4. Separation of Code Repository which leads to more control.

#frontend #web #micro-frontends #design #javascript

Slava Birch

Slava Birch

1621824123

Sharing React hooks stateful logic between components

When you want to separate your React hooks between several components it’s can be very difficult, because all context data stored in React component function area. If you want to share some of state parts or control functions to another component your need pass It thought React component props. But If you want to share It with sibling one level components or a set of scattered components, you will be frustrated.

useBetween hook is the solution to your problem 😚

// App.jsx
import React, { useState, useCallback } from 'react';
import { useBetween } from 'use-between';

const useCounterStore = () => {
  const [count, setCount] = useState(0);
  const inc = useCallback(() => setCount(c => c + 1), []);
  const dec = useCallback(() => setCount(c => c - 1), []);
  return {
    count,
    inc,
    dec
  };
};

const Count = () => {
  const { count } = useBetween(useCounterStore);
  return <p>{count}</p>;
};

const Buttons = () => {
  const { inc, dec } = useBetween(useCounterStore);
  return (
    <>
      <button onClick={inc}>+</button>
      <button onClick={dec}>-</button>
    </>
  );
};

const App = () => (
  <>
    <Count />
    <Buttons />
    <Count />
    <Buttons />
  </>
);

export default App;

Example on codesandbox

useBetween is a way to call any hook. But so that the state will not be stored in the React component. For the same hook, the result of the call will be the same. So we can call one hook in different components and work together on one state. When updating the shared state, each component using it will be updated too.

If you like this idea and would like to use it, please put star in github. It will be your first contribution!

#react #frontend #webdev #hooks #state-sharing #javascript

Royce  Reinger

Royce Reinger

1614568221

Achieving Micro-frontend Architecture Using Angular Elements

Scaling micro-frontends using Angular elements: Hosting on Azure cloud. The micro-frontends architecture creates a buzz in the web app development world.

There are several open-source and third-party libraries that have become de-facto standards to reduce development effort and keep complexity out. But as applications tend to become complicated over time, demanding on-the-fly scalability and high responsiveness, a micro-frontend architecture using Angular elements serves as the need of the hour in fulfilling these criteria. In this blog post, we discuss the importance of building a micro frontend using Angular elements and hosting it on Microsoft Azure, along with a technical demonstration of how we can create a micro-frontend using Angular.

What Is Micro-frontend Architecture?

Micro-frontend is a design approach in which app developers split the coding task into multiple frontend apps to ease the app development process. This helps many teams to work simultaneously on a large and complex app using a single frontend code. A micro-frontend architecture offers a more manageable, independent, and maintainable code. Using micro-frontend architecture, development teams can easily integrate, innovate, and iterate apps. Importantly, it encourages making changes to apps like write, rewrites, updates, and improvements in an incremental manner. In a nutshell, it allows enterprises to develop and deploy enterprise-level apps with greater accuracy.

If you’re still over the fence about the need to adopt the micro-frontend architecture, let’s take a closer look at what micro-frontend development can mean for your web apps:

Smoother Transition CI/CD

Each app integrates and deploys separately, making the CI/CD process a lot easier. For instance, when you introduce a new feature, you do not have to worry about the entire application since all functionalities are independent.

Stacks and Versions

You can choose to have your stack for each app and have different versions of the same stack. For example, your team can have the flexibility and time to test newer versions of the same stack.

No Code Sharing

When building large apps, most enterprises tend to share code across features but may lead to scaling issues later when bugs and interdependency over the app grow bigger. The good thing is, this does not apply with the micro-frontends as code sharing is not required for every component.

#angular #frontend #micro frontends