Coder Social home page Coder Social logo

aminbenselim / wp-react-redux Goto Github PK

View Code? Open in Web Editor NEW
35.0 4.0 5.0 1.28 MB

wordpress theme developed using react/redux and the WP-API

License: GNU General Public License v2.0

JavaScript 93.62% PHP 4.77% CSS 1.61%
wordpress-api redux react-router react wp-api wordpress-theme

wp-react-redux's Introduction

WP React Redux is an experimental WordPress theme built using a modern JavaScript workflow: React for UI components React Router for routing Redux for managing state WP REST API for getting data from the WordPress back end. Webpack for asset bundling

** you can see an example working version on my website here

Features

  • an example of how to develop WP themes using react and redux.
  • post pagination and the ability to load more posts.
  • previous and next links.
  • easy deployment (like any other WordPress theme).

Getting Started

what you need to have a working example of this theme: - an installation of WordPress version 4.7.0 or higher - WP prev next added to your plugins directory

then simply zip and upload the theme like you would do with any other WordPress theme

Todos

  • add seperate development and production builds.
  • add tests (WIP).
  • add continous integrations (CI).
  • add user authentication.
  • add SASS workflow.
  • add FLOW for type checking.

wp-react-redux's People

Contributors

aminbenselim avatar thesublimeobject avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wp-react-redux's Issues

Use of dangerouslySetInnerHTML

Is there any specific reason why you seem to use the following

<h3 dangerouslySetInnerHTML={{ __html: post.title.rendered }} />

rather than <h3>{ post.title.rendered }</h3>.

Just curious. It's been about six months since I actively worked on a React project, but I don't know if any advantages. If I am wrong, please correct me.

No previous or next link

I'm running this on a local server. When I make a call to the api for a single post, the object returned doesn't have "previous_post" "next_post" keys. Do you know how I would get that feature to work?

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.