take-notes
TypeScript icon, indicating that this package has built-in type declarations

0.0.23 • Public • Published

take-notes

Notes

  • Intro: hear you get notes of all differnt technologies like html,css,js,ts,java etc, from diffent teachers and with diffent explaination and also u can be a part of it by creating your known notes.

Step to be follow:

  • Install take-notes by using following comand
 npm i take-notes
  • After the Installation check in the package.json file wither it is installed or not.
"take-notes": "^1.0.1",
  • Working Example with React.JS is as follows:
import logo from './logo.svg';
import './App.css';
import {useState} from 'react'
import base64 from 'base64-encode-file'

function App() {
let [img,setImg]=useState()
let handleChange=async(e)=>{
 let data=await base64(e.target.files[0])
 console.log(data)
}
 return <>
 <h1>testing the  base64-encode-file</h1>
 <input type="file" name="img" onChange={handleChange}/>
 </>
}

export default App;
  • Working Example with React.TS is as follows:
import React from 'react';
import logo from './logo.svg';
import './App.css';
import base64 from 'base64-encode-file'

function App() {
 
  let handleChange=async(e:any)=>{
    console.log( await base64(e.target.files[0]))
 
  }
  return (
    <>
    <input type="file" name="" onChange={handleChange} />
    </>
  );
}

export default App;

Package Sidebar

Install

npm i take-notes

Weekly Downloads

0

Version

0.0.23

License

MIT

Unpacked Size

29 kB

Total Files

6

Last publish

Collaborators

  • waseemahmed116