Kvngrashy_fx
Kvngrashy_fx
SSolidJS
Created by Kvngrashy_fx on 12/3/2023 in #support
does not provide an export named 'createRef'
11 replies
SSolidJS
Created by Kvngrashy_fx on 12/3/2023 in #support
does not provide an export named 'createRef'
the routes are not working it's showing 404
11 replies
SSolidJS
Created by Kvngrashy_fx on 12/3/2023 in #support
does not provide an export named 'createRef'
But i have another issue with my app deployment to vercel
11 replies
SSolidJS
Created by Kvngrashy_fx on 12/3/2023 in #support
does not provide an export named 'createRef'
That have been resolved thanks
11 replies
SSolidJS
Created by Kvngrashy_fx on 12/3/2023 in #support
does not provide an export named 'createRef'
import { createRef } from "react"; import { IoAddCircle } from "solid-icons/io"; import { createSignal } from "solid-js"; const UpdatedProfile = () => { const imgRef = createRef(); const [photo, setPhoto] = createSignal(""); const handleImage = (e) => { const file = e.target.files[0]; transformFile(file); }; const transformFile = (file) => { const reader = new FileReader(); if (file) { reader.readAsDataURL(file); reader.onloadend = () => { setPhoto(reader.result); }; } else { setPhoto(""); } }; return ( <div onClick={(e) => { e.stopPropagation(); }} className="flex flex-col justify-center absolute p-2 left-[40%] top-[40%] max-[700px]:top-[25%] max-[700px]:left-[3rem] items-center bg-neutral-900 shadow shadow-neutral-300 h-auto w-[270px] rounded-[9px]" > {photo() ? ( <img onClick={() => imgRef.current.click()} src={photo()} className="w-full" /> ) : ( <div onClick={() => imgRef.current.click()} className="flex items-center gap-2 text-white p-3 hover:bg-slate-800 cursor-pointer rounded-[8px] w-full" > <IoAddCircle size={25} /> <p className="text-white font-kanit">Select a photo</p> </div> )} <input type="file" className="hidden" ref={imgRef} onChange={handleImage} /> </div> ); }; export default UpdatedProfile;
11 replies
SSolidJS
Created by Kvngrashy_fx on 12/3/2023 in #support
does not provide an export named 'createRef'
Ok
11 replies
SSolidJS
Created by Kvngrashy_fx on 7/26/2023 in #support
React Icons Error
How can access the store in solidjs component
12 replies
SSolidJS
Created by Kvngrashy_fx on 7/26/2023 in #support
React Icons Error
Does solidjs allow redux
12 replies
SSolidJS
Created by Kvngrashy_fx on 7/26/2023 in #support
React Icons Error
What about redux
12 replies
SSolidJS
Created by Kvngrashy_fx on 7/26/2023 in #support
React Icons Error
I have found another way to use svg, thanks alot to you all
12 replies
SSolidJS
Created by Kvngrashy_fx on 7/26/2023 in #support
React Icons Error
Thank nice
12 replies
SSolidJS
Created by Kvngrashy_fx on 7/26/2023 in #support
React Icons Error
Why solidjs does not allow react components library
12 replies