Title: Dynamic Block Development
Last modified: December 3, 2022

---

# Dynamic Block Development

 *  [arnepedersen](https://wordpress.org/support/users/arnepedersen/)
 * (@arnepedersen)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/dynamic-block-development/)
 * Hi, everyone.
 * I’m new to WP, so I just want to make sure I have understood this correctly;
 * When developing a **static block** both the block editor (back end) markup and
   the front end markup can be done in JS/JSX.
 * However, when developing a **dynamic block**, the markup for the front end _must_
   happen in the plugin.php file – is that correct?
 * You see, the reason I ask is that I am a React developer, and my php skills are
   very poor. So naturally, I would love to be able to develop as much as possible
   in JS/JSX.

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/dynamic-block-development/#post-16257815)
 * The distinction between JSX or PHP isn’t static vs. dynamic, it’s server side
   vs. client side. If your JSX has all the data it needs, it could dynamically 
   render a block client side. If it lacks data, it could fetch it through the REST
   API.
 * PHP is more of a fallback when it’s impractical to dynamically render client 
   side. From the _[Creating dynamic blocks](https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/creating-dynamic-blocks/)_
   page of the _Block Editor Handbook_:
 * > Server-side render is meant as a fallback; client-side rendering in JavaScript
   > is always preferred

Viewing 1 replies (of 1 total)

The topic ‘Dynamic Block Development’ is closed to new replies.

## Tags

 * [block](https://wordpress.org/support/topic-tag/block/)
 * [development](https://wordpress.org/support/topic-tag/development/)
 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [end](https://wordpress.org/support/topic-tag/end/)
 * [front](https://wordpress.org/support/topic-tag/front/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/dynamic-block-development/#post-16257815)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
