index.js import React, { useState } from ‘react’; import { render } from ‘react-dom’; import ‘./style.css’; const emailRegex = /(?:[a-z0-9!#$%&*+/=?^_{|}~-]+(?:\.[a-z0-9!#$%&’*+/=?^_`{|}~-]+)*|”(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*”)@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/; let App = () =>
Category: React
React Redux – Connect
How to use Redux with React ? 1. npm install –save react-redux store.js import * as redux from ‘redux’; //Actions export const COUNTER_INCREMENT = ‘counter/increment’;
React Redux – Multiple Reducer
We can have multiple reducer and combine them through rootReducer : 1. Create a store 2. Give a rootReducer to Store 3. rootReducer has two
React Redux – Intro Reducer
Step 1 : Install dependency ” npm install –save redux ” import React from “react”; import { createStore } from “redux” import { Provider }