Giter Site home page Giter Site logo

Comments (5)

kadamwhite avatar kadamwhite commented on August 24, 2024

This is definitely something I'd been considering, probably by way of using Browserify to package the application to a browser-compatible built file and exchanging native Node utilities like url with Browserify-able equivalents. If you want to take a stab at that, or have your own approach, please feel free! If not, I'll have time to tackle this probably in early November.

from node-wpapi.

alexciarlillo avatar alexciarlillo commented on August 24, 2024

I think this can be closed thanks to Browserify. It appears they shim most core libs that can be used from the browser now. I just just installed this via npm and required it into a React app built with Browserify no problem.

edit: I figured I should add that I only tried a single wp.posts() call so some other functionality may not work.

from node-wpapi.

kadamwhite avatar kadamwhite commented on August 24, 2024

That's great news -- do you have a demo or repo up I could check out? I'd like to see it in action before I close the issue, and I haven't had time to put a test together myself yet.

from node-wpapi.

alexciarlillo avatar alexciarlillo commented on August 24, 2024

This is the repo I am working on: https://github.com/alexciarlillo/react-wp It is a WIP and is using ReactJS and RefluxJS for views and data-flow respectively. I can try to hammer out something simpler a little later if needed.

from node-wpapi.

kadamwhite avatar kadamwhite commented on August 24, 2024

This can be closed, browserify usage works OOTB.

from node-wpapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.