Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

A Node Module For ReactJS

node_modules/thing/index.js
 let x = "SSSSSS";
 let y = "SSSSWWWWW";
 let z = function()
 {
 	alert("ZZZZZ");
 }
 exports.x = x;
 exports.y = y;
 exports.z = z;
  
 
  App.js
  
  import logo from './logo.svg';
import './App.css';

import {useEffect} from 'react';
import {x,y,z} from 'thing';
function App() {


  useEffect(()=>{

alert(x);
z();
  })
 
PREVIOUS NEXT
Tagged: #A #Node #Module #For #ReactJS
ADD COMMENT
Topic
Name
1+4 =