Become a member
Sign in
React without npm, Babel, or webpack
1.3K
12
Chris Lewis
Hendri Tanadi (Chilly)
Hendri Tanadi (Chilly)
Sep 6, 2018 · 1 min read

I’ve been doing exactly this, and working as expected. However (still avoiding NPM and the like) how do you :

import {component} from ‘./component’;

on here, without browserify / requirejs, it complains require is not a function

    Hendri Tanadi (Chilly)

    Written by

    Hendri Tanadi (Chilly)

    See responses (1)

    Discover Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

    Make Medium yours

    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

    Become a member

    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
    AboutHelpLegal