This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| export default function Child(props) { | |
| return ( | |
| <div className="Child"> | |
| <h4>Child</h4> | |
| <input | |
| placeholder="input to parent..." | |
| onChange={(e) => props.fromChild(e.target.value)} | |
| /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import Child from "./child"; | |
| export default function Parent() { | |
| const [parentInput, setParentInput] = React.useState(); | |
| const [childInput, setChildInput] = React.useState(); | |
| return ( | |
| <div className="Parent"> | |
| <h4>Parent</h4> | |
| <input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import LoadingOverlay from 'react-loading-overlay' | |
| import './App.css'; | |
| import {connect, useDispatch} from 'react-redux' | |
| import {setLoader} from './store'; | |
| function App(props) { | |
| console.log(props.isActive) | |
| const dispatch = useDispatch() | |
| return ( | |
| <LoadingOverlay |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import './index.css'; | |
| import App from './App'; | |
| import reportWebVitals from './reportWebVitals'; | |
| import { Provider } from 'react-redux'; | |
| import {store} from './store'; | |
| ReactDOM.render( | |
| <Provider store={store}> | |
| <App /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {createStore} from 'redux' | |
| // Action Type | |
| const LOADER = 'LOADER' | |
| // Action | |
| export const setLoader = (loading) => { | |
| return { | |
| type : LOADER, | |
| payload : loading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {useState} from 'react' | |
| import LoadingOverlay from 'react-loading-overlay' | |
| import './App.css'; | |
| function App() { | |
| const [isActive, setIsActive] = useState(false) | |
| return ( | |
| <LoadingOverlay | |
| active={isActive} | |
| spinner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import LoadingOverlay from 'react-loading-overlay' | |
| import './App.css'; | |
| function App() { | |
| return ( | |
| <LoadingOverlay | |
| active={true} | |
| spinner | |
| text='Loading...' | |
| > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Microsoft.Xrm.Tooling.Connector; | |
| namespace Dynamics365_Console_Application | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| try |